Function at 0x1002aeb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb4]
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
cmp ebp, esi
je 0x1002c236
cmp ecx, esi
je 0x1002c236
cmp eax, esi
je 0x1002c236
mov edx, dword [esp + 0xac]
test edx, 0xbffceff8
je 0x1002af2a
push 0x3ec
jmp 0x1002c238
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xa0], eax
cmp eax, esi
jne 0x1002afda
cmp dword [esp + 0xb4], esi
je 0x1002afb8
movzx eax, word [ecx]
cmp ax, si
jne 0x1002af57
cmp dword [esp + 0xb4], 0xfffffffe
je 0x1002af97
cmp ebx, esi
je 0x1002af97
movzx eax, word [edi]
cmp ax, si
jne 0x1002af6d
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002af97
movzx ebp, word [ecx]
cmp bp, ax
jne 0x1002af97
mov eax, dword [esp + 0x18]
dec eax
add ecx, 2
add edi, 2
dec ebx
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x1002af45
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
jmp 0x1002afb8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x18], esi
je 0x1002afb8
cmp word [ecx], si
jne 0x1002afd3
cmp dword [esp + 0xb4], 0xfffffffe
jne 0x1002afd3
cmp ebx, esi
je 0x1002c224
cmp word [edi], si
jne 0x1002afd3
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002c224
mov ebp, dword [esp + 0xa8]
mov eax, edx
and eax, 4
mov dword [esp + 0x68], eax
mov ecx, edx
and ecx, 2
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], ecx
mov eax, edx
and eax, 0x1000
or edi, 0xffffffff
mov ecx, edx
mov dword [esp + 0x9c], eax
and ecx, 3
mov eax, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edi
cmp ecx, 3
ja case.default.0x1002b043
jmp dword [ecx*4 + 0x1002c250]
xor eax, eax
cmp dword [ebp + 0x18], esi
mov dword [esp + 0x34], edi
setne al
inc eax
or eax, 4
mov dword [esp + 0x40], eax
jmp case.default.0x1002b043
xor eax, eax
cmp dword [ebp + 0x18], esi
mov dword [esp + 0x34], 0xe7ffffff
setne al
inc eax
or eax, 4
mov dword [esp + 0x40], eax
jmp case.default.0x1002b043
mov dword [esp + 0x34], 0xff00ffff
jmp case.default.0x1002b043
mov dword [esp + 0x34], 0xe700ffff
mov ecx, edx
and ecx, 0x30000
cmp ecx, 0x10000
je 0x1002b0d8
cmp ecx, 0x20000
je 0x1002b0c2
cmp ecx, 0x30000
jne 0x1002b0e0
and dword [esp + 0x34], 0xdeffffff
test dl, 1
je 0x1002b0e0
and eax, 0xfffffffb
mov dword [esp + 0x40], eax
jmp 0x1002b0e0
and dword [esp + 0x34], 0xfeffffff
test dl, 1
je 0x1002b0e0
and eax, 0xfffffffb
mov dword [esp + 0x40], eax
jmp 0x1002b0e0
and dword [esp + 0x34], 0xdfffffff
cmp dword [esp + 0x18], esi
je 0x1002c101
lea ebx, [ebx]
mov edi, dword [esp + 0x14]
movzx eax, word [edi]
mov edx, dword [esp + 0xb4]
test ax, ax
jne 0x1002b108
cmp edx, 0xfffffffe
je 0x1002c19f
cmp dword [esp + 0x1c], 0
mov esi, dword [esp + 0x10]
je 0x1002c1a3
movzx ebp, word [esi]
test bp, bp
jne 0x1002b12d
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002c1a3
cmp dword [esp + 0x20], 0xffffffff
jne 0x1002b157
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xc0]
push ecx
push edx
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.1002aa83
mov edx, dword [esp + 0x34]
and dword [esp + 0x20], edx
mov ebx, dword [esp + 0x24]
cmp ebx, 0xffffffff
jne 0x1002b187
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xc0]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
call fcn.1002aa83
mov ebx, dword [esp + 0x24]
and ebx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
cmp dword [esp + 0xa0], 0
je 0x1002b6de
mov al, byte [esp + 0x23]
test al, 0xc0
jne 0x1002b1ab
mov ecx, ebx
shr ecx, 0x18
test cl, 0xc0
je 0x1002b6de
movzx ebp, al
shr ebx, 0x18
and ebp, 0xc0
and ebx, 0xc0
cmp ebp, ebx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x50], ebp
jg 0x1002b1d7
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x18]
add edx, 0xffffffff
je 0x1002b1fb
cmp word [edi + 2], 0
jne 0x1002b1f1
cmp dword [esp + 0xb4], 0xfffffffe
je 0x1002b1fb
mov dword [esp + 0x44], 0
jmp 0x1002b203
mov dword [esp + 0x44], 1
mov ecx, dword [esp + 0x1c]
add ecx, 0xffffffff
je 0x1002b227
cmp word [esi + 2], 0
jne 0x1002b21d
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002b227
mov dword [esp + 0x48], 0
jmp 0x1002b22f
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0xa8]
cmp dword [eax + 0x20], 0
jne 0x1002b429
mov eax, dword [esp + 0x50]
sub eax, 0x80
je 0x1002b30e
sub eax, 0x40
jne 0x1002b6de
test ebp, ebp
je 0x1002b27b
cmp dword [esp + 0x44], eax
jne 0x1002b27b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
je 0x1002b27b
cmp word [edi + 4], ax
jne 0x1002b2a8
cmp dword [esp + 0xb4], 0xfffffffe
jne 0x1002b2a8
test ebx, ebx
je 0x1002b30e
cmp dword [esp + 0x48], 0
jne 0x1002b30e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
je 0x1002b30e
cmp word [esi + 4], 0
jne 0x1002b2a8
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002b30e
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 0xa]
mov eax, dword [eax + 0x2c]
test ecx, ecx
jle 0x1002b30e
test ebp, ebp
je 0x1002b358
mov dx, word [eax]
cmp dx, word [edi]
jne 0x1002b358
mov dx, word [eax + 2]
cmp dx, word [edi + 2]
jne 0x1002b358
mov dx, word [eax + 4]
cmp dx, word [edi + 4]
jne 0x1002b358
mov edx, dword [eax + 8]
and edx, dword [esp + 0x34]
sub dword [esp + 0x18], 2
add edi, 4
xor ebp, ebp
mov dword [esp + 0x20], edx
test ebx, ebx
jne 0x1002b35c
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
test ecx, ecx
jg 0x1002b6de
test ebp, ebp
je 0x1002b319
cmp dword [esp + 0x44], 0
je 0x1002b32c
test ebx, ebx
je 0x1002b6de
cmp dword [esp + 0x48], 0
jne 0x1002b6de
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 8]
mov eax, dword [eax + 0x28]
test ecx, ecx
jle 0x1002b6de
lea ecx, [ecx]
test ebp, ebp
jne 0x1002b3ae
test ebx, ebx
je 0x1002b6de
jmp 0x1002b3e6
test ebx, ebx
je 0x1002b395
mov dx, word [eax]
cmp dx, word [esi]
jne 0x1002b395
mov dx, word [eax + 2]
cmp dx, word [esi + 2]
jne 0x1002b395
mov dx, word [eax + 4]
cmp dx, word [esi + 4]
jne 0x1002b395
mov edx, dword [eax + 8]
and edx, dword [esp + 0x34]
sub dword [esp + 0x1c], 2
add esi, 4
xor ebx, ebx
mov dword [esp + 0x24], edx
test ebp, ebp
je 0x1002b2fe
dec ecx
add eax, 0xc
test ecx, ecx
jg 0x1002b2bd
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jmp 0x1002b30e
mov dx, word [eax]
cmp dx, word [edi]
jne 0x1002b3e2
mov dx, word [eax + 2]
cmp dx, word [edi + 2]
jne 0x1002b3e2
mov edx, dword [eax + 4]
and edx, dword [esp + 0x34]
dec dword [esp + 0x18]
add edi, 2
xor ebp, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
test ebx, ebx
je 0x1002b6de
jmp 0x1002b3e6
test ebx, ebx
je 0x1002b418
mov dx, word [eax]
cmp dx, word [esi]
jne 0x1002b418
mov dx, word [eax + 2]
cmp dx, word [esi + 2]
jne 0x1002b418
mov edx, dword [eax + 4]
and edx, dword [esp + 0x34]
dec dword [esp + 0x1c]
add esi, 2
xor ebx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], esi
test ebp, ebp
je 0x1002b6de
dec ecx
add eax, 8
test ecx, ecx
jg 0x1002b347
jmp 0x1002b6de
cmp dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
jne 0x1002b463
mov esi, dword [esp + 0x14]
movzx edi, word [esi]
xor eax, eax
cmp di, word [esi + 2]
mov esi, dword [esp + 0x10]
sete al
mov dword [esp + 0x4c], eax
test eax, eax
je 0x1002b463
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x48], 0
mov dword [esp + 0x30], 0
jne 0x1002b491
movzx edi, word [esi]
xor eax, eax
cmp di, word [esi + 2]
sete al
mov dword [esp + 0x30], eax
test eax, eax
je 0x1002b491
add esi, 2
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x50]
sub eax, 0x80
je 0x1002b604
sub eax, 0x40
jne 0x1002b6be
test ebp, ebp
je 0x1002b552
cmp dword [esp + 0x44], eax
jne 0x1002b552
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0x50], eax
je 0x1002b552
mov edi, dword [esp + 0x14]
movzx esi, word [edi + 4]
test si, si
jne 0x1002b4e3
cmp dword [esp + 0xb4], 0xfffffffe
je 0x1002b552
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 0xa]
mov eax, dword [eax + 0x2c]
test ecx, ecx
jle 0x1002b552
movzx edx, word [edi]
cmp word [eax], dx
jne 0x1002b517
mov bx, word [eax + 2]
cmp bx, word [edi + 2]
jne 0x1002b510
cmp word [eax + 4], si
je 0x1002b521
mov ebx, dword [esp + 0x84]
dec ecx
add eax, 0xc
test ecx, ecx
jg 0x1002b4fb
jmp 0x1002b552
mov eax, dword [eax + 8]
and eax, dword [esp + 0x34]
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x20], eax
jne 0x1002b542
mov edx, dword [esp + 0x50]
add edi, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x84]
xor ebp, ebp
mov dword [esp + 0x88], ebp
test ebx, ebx
je 0x1002b5fe
cmp dword [esp + 0x48], 0
jne 0x1002b5fe
mov edi, dword [esp + 0x1c]
add edi, 0xfffffffe
je 0x1002b5fe
mov eax, dword [esp + 0x10]
movzx esi, word [eax + 4]
test si, si
jne 0x1002b589
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002b5fe
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 0xa]
mov eax, dword [eax + 0x2c]
test ecx, ecx
jle 0x1002b5fe
mov edx, dword [esp + 0x10]
movzx edx, word [edx]
mov edi, edi
cmp word [eax], dx
jne 0x1002b5ce
mov bp, word [eax + 2]
mov ebx, dword [esp + 0x10]
cmp bp, word [ebx + 2]
jne 0x1002b5c0
cmp word [eax + 4], si
je 0x1002b5d8
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
dec ecx
add eax, 0xc
test ecx, ecx
jg 0x1002b5a7
jmp 0x1002b5fe
mov eax, dword [eax + 8]
and eax, dword [esp + 0x34]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
jne 0x1002b5f5
add ebx, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x88]
xor ebx, ebx
test ebp, ebp
jne 0x1002b608
jmp 0x1002b661
test ebp, ebp
je 0x1002b661
cmp dword [esp + 0x44], 0
jne 0x1002b661
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 8]
mov eax, dword [eax + 0x28]
test ecx, ecx
jle 0x1002b661
mov esi, dword [esp + 0x14]
movzx edx, word [esi]
cmp word [eax], dx
jne 0x1002b63a
mov di, word [eax + 2]
cmp di, word [esi + 2]
je 0x1002b644
dec ecx
add eax, 8
test ecx, ecx
jg 0x1002b62b
jmp 0x1002b661
mov eax, dword [eax + 4]
and eax, dword [esp + 0x34]
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x20], eax
jne 0x1002b661
add esi, 2
dec dword [esp + 0x18]
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x1002b6be
cmp dword [esp + 0x48], 0
jne 0x1002b6be
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 8]
mov eax, dword [eax + 0x28]
test ecx, ecx
jle 0x1002b6be
mov esi, dword [esp + 0x10]
movzx edx, word [esi]
cmp word [eax], dx
jne 0x1002b697
mov di, word [eax + 2]
cmp di, word [esi + 2]
je 0x1002b6a1
dec ecx
add eax, 8
test ecx, ecx
jg 0x1002b688
jmp 0x1002b6be
mov eax, dword [eax + 4]
and eax, dword [esp + 0x34]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
jne 0x1002b6be
add esi, 2
dec dword [esp + 0x1c]
mov dword [esp + 0x10], esi
cmp dword [esp + 0x4c], 0
je 0x1002b6ce
sub dword [esp + 0x14], 2
inc dword [esp + 0x18]
cmp dword [esp + 0x30], 0
je 0x1002b6de
sub dword [esp + 0x10], 2
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], eax
je 0x1002c09f
mov ecx, dword [esp + 0x24]
mov al, byte [esp + 0x21]
shr ecx, 8
mov byte [esp + 0x3b], cl
mov cx, word [esp + 0x20]
movzx edx, cx
mov dword [esp + 0x48], edx
mov dx, word [esp + 0x24]
movzx esi, dx
mov bl, al
mov byte [esp + 0x2b], bl
mov dword [esp + 0x44], esi
cmp cx, dx
jne 0x1002b72e
cmp al, 0xb
ja 0x1002bf82
cmp al, 3
jb 0x1002bf82
mov edx, 2
lea esi, [edx - 1]
test al, al
jne 0x1002b74d
add dword [esp + 0x14], edx
sub dword [esp + 0x18], esi
mov eax, 0xffffffff
mov dword [esp + 0x20], eax
jmp 0x1002b750
or eax, 0xffffffff
mov cl, byte [esp + 0x3b]
test cl, cl
jne 0x1002b764
add dword [esp + 0x10], edx
sub dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0x64], 0
je 0x1002b78d
cmp bl, 1
jne 0x1002b77c
add dword [esp + 0x14], edx
sub dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
cmp cl, 1
jne 0x1002b78d
add dword [esp + 0x10], edx
sub dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0x6c], 0
je 0x1002b7b6
cmp bl, 6
jne 0x1002b7a5
add dword [esp + 0x14], edx
sub dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
cmp cl, 6
jne 0x1002b7b6
add dword [esp + 0x10], edx
sub dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], eax
je 0x1002c0f6
cmp dword [esp + 0x24], 0xffffffff
je 0x1002c0f6
movzx eax, byte [esp + 0x2b]
dec eax
cmp eax, 0xa
ja case.0x1002b7e1.4
movzx eax, byte [eax + 0x1002c278]
jmp dword [eax*4 + 0x1002c260]
cmp dword [esp + 0x64], 0
jne 0x1002b80a
cmp dword [esp + 0x5c], 0
je 0x1002b7fd
test byte [esp + 0x40], 2
je 0x1002b80a
and dword [esp + 0x40], 0xfffffffe
mov dword [esp + 0x5c], 3
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
jmp case.0x1002b7e1.4
cmp dword [esp + 0x6c], 0
je case.0x1002b7e1.4
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
jmp case.0x1002b7e1.4
cmp dword [esp + 0x68], 0
je 0x1002b85e
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
jmp case.0x1002b7e1.4
cmp dword [esp + 0x9c], 0
jne case.0x1002b7e1.4
cmp byte [esp + 0x3b], 6
je case.0x1002b7e1.4
cmp dword [esp + 0x58], 0
je 0x1002b8a4
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
mov dword [esp + 0x58], 3
mov dword [esp + 0x68], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x1002b7e1.4
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
mov dword [esp + 0x54], 3
mov dword [esp + 0x20], 0xffffffff
jmp case.0x1002b7e1.4
mov ecx, dword [esp + 0x14]
movzx eax, byte [esp + 0x20]
inc dword [esp + 0x18]
mov dword [esp + 0x70], ecx
mov ecx, dword [0x10049400]
lea edx, [esp + 0x8c]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x28]
mov cx, word [edx + eax*4]
lea eax, [edx + eax*4]
mov dx, word [eax + 2]
mov word [esp + 0x8c], cx
mov word [esp + 0x8e], dx
mov dword [esp + 0x7c], 2
mov dword [esp + 0x20], 0xffffffff
jmp case.0x1002b7e1.4
mov ebx, dword [esp + 0x20]
mov cl, byte [esp + 0x20]
shr ebx, 0x18
and bl, 0x3f
mov dword [esp + 0x3c], 0
mov eax, 0xffff0000
cmp cl, 1
ja 0x1002ba59
mov esi, dword [esp + 0x14]
lea ecx, [esi - 2]
cmp ecx, dword [esp + 0xb0]
jb 0x1002ba8a
mov eax, dword [esp + 0xa8]
mov ax, word [eax]
mov edx, 0x3ff
and ax, dx
mov word [esp + 0x50], ax
mov ebp, 2
add esi, 0xfffffffe
mov ecx, dword [esp + 0xc0]
movzx edi, word [esi]
push ecx
lea edx, [esp + 0x98]
push edx
push edi
call fcn.10029762
cmp word [esp + 0x50], 0x12
jne 0x1002b99d
push edi
lea eax, [esp + 0x98]
push eax
call fcn.10029bdd
mov eax, dword [esp + 0x94]
and eax, dword [esp + 0x34]
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x30], eax
cmp cl, 3
jae 0x1002b9c6
mov eax, 0xffff0000
cmp cl, 2
je 0x1002ba8a
jmp 0x1002b9d9
jne 0x1002ba4e
mov al, byte [esp + 0x30]
cmp al, 1
ja 0x1002b9f3
mov eax, 0xffff0000
mov edx, dword [esp + 0x14]
add ebp, 2
sub edx, ebp
sub esi, 2
cmp edx, dword [esp + 0xb0]
jae 0x1002b96e
jmp 0x1002ba8a
movzx si, al
mov eax, 0x2200
or si, ax
mov al, byte [esp + 0x33]
and al, 0x3f
mov cl, al
and cl, 0xc6
mov byte [esp + 0x3c], cl
mov cl, al
and cl, 0xe4
cmp byte [esp + 0x20], 0
mov word [esp + 0x30], si
mov byte [esp + 0x3e], cl
jne 0x1002ba3b
movzx ecx, si
and al, 0xc5
mov byte [esp + 0x3f], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
mov byte [esp + 0x3d], 4
jmp 0x1002ba91
mov eax, dword [esp + 0x30]
mov edx, eax
and edx, 0xff87
mov byte [esp + 0x3d], 5
jmp 0x1002ba7f
movzx ecx, word [esp + 0x30]
mov dword [esp + 0x48], ecx
jmp 0x1002ba8a
movzx dx, cl
mov ecx, 0x2200
or dx, cx
mov cl, bl
and cl, 0xc6
mov byte [esp + 0x3c], cl
mov cl, bl
and cl, 0xe4
movzx edx, dx
mov byte [esp + 0x3d], 3
mov byte [esp + 0x3e], cl
and bl, 0xc5
mov byte [esp + 0x3f], bl
mov dword [esp + 0x48], edx
cmp byte [esp + 0x20], 1
ja 0x1002baac
cmp eax, 0xffff0000
jne 0x1002baac
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x48], 0xffff
mov dword [esp + 0x3c], eax
jmp 0x1002bac9
mov eax, dword [esp + 0x20]
movzx ecx, word [esp + 0x48]
and eax, 0xffff0000
or eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x23], 2
cmp byte [esp + 0x3b], 3
je case.0x1002b7e1.4
cmp byte [esp + 0x2c], 0
jne 0x1002bae3
cmp byte [esp + 0x3c], 0
je 0x1002bae3
mov byte [esp + 0x2c], 3
cmp byte [esp + 0x2d], 0
jne 0x1002baf8
mov edx, eax
shr edx, 8
test dl, dl
je 0x1002baf8
mov byte [esp + 0x2d], 3
cmp byte [esp + 0x2e], 0
jne 0x1002bb0d
mov ecx, eax
shr ecx, 0x10
test cl, cl
je 0x1002bb0d
mov byte [esp + 0x2e], 3
cmp byte [esp + 0x2f], 0
jne case.0x1002b7e1.4
shr eax, 0x18
test al, al
je case.0x1002b7e1.4
mov byte [esp + 0x2f], 3
movzx eax, byte [esp + 0x3b]
dec eax
cmp eax, 0xa
ja case.0x1002bb36.4
movzx edx, byte [eax + 0x1002c29c]
jmp dword [edx*4 + 0x1002c284]
cmp dword [esp + 0x64], 0
jne 0x1002bb5f
cmp dword [esp + 0x5c], 0
je 0x1002bb52
test byte [esp + 0x40], 2
je 0x1002bb5f
and dword [esp + 0x40], 0xfffffffe
mov dword [esp + 0x5c], 1
add dword [esp + 0x10], 2
dec dword [esp + 0x1c]
mov dword [esp + 0x24], 0xffffffff
jmp case.0x1002bb36.4
cmp dword [esp + 0x6c], 0
je case.0x1002bb36.4
add dword [esp + 0x10], 2
dec dword [esp + 0x1c]
mov dword [esp + 0x24], 0xffffffff
jmp case.0x1002bb36.4
cmp dword [esp + 0x68], 0
je 0x1002bbb3
add dword [esp + 0x10], 2
dec dword [esp + 0x1c]
mov dword [esp + 0x24], 0xffffffff
jmp case.0x1002bb36.4
cmp dword [esp + 0x9c], 0
jne case.0x1002bb36.4
cmp byte [esp + 0x2b], 6
je 0x1002bbf4
cmp dword [esp + 0x54], 0
mov eax, 1
je 0x1002bbda
mov dword [esp + 0x54], eax
jmp 0x1002bc42
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], 0xffffffff
jmp case.0x1002bb36.4
cmp dword [esp + 0x54], 0
je 0x1002bc06
mov eax, 1
mov dword [esp + 0x54], eax
jmp 0x1002bc31
cmp dword [esp + 0x58], 0
je 0x1002bc17
mov dword [esp + 0x58], 3
jmp 0x1002bc2c
movzx eax, byte [esp + 0x20]
cmp al, byte [esp + 0x24]
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
mov dword [esp + 0x54], eax
mov eax, 1
add dword [esp + 0x14], 2
sub dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xffffffff
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x24], 0xffffffff
jmp case.0x1002bb36.4
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + 0x24]
inc dword [esp + 0x1c]
mov dword [esp + 0x80], ecx
mov ecx, dword [0x10049400]
lea edx, [esp + 0x90]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x28]
mov cx, word [edx + eax*4]
lea eax, [edx + eax*4]
mov dx, word [eax + 2]
mov word [esp + 0x90], cx
mov word [esp + 0x92], dx
mov dword [esp + 0x78], 2
mov dword [esp + 0x24], 0xffffffff
jmp case.0x1002bb36.4
mov ebx, dword [esp + 0x24]
shr ebx, 0x18
and bl, 0x3f
cmp byte [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov eax, 0xffff0000
ja 0x1002be36
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffe
cmp ecx, dword [esp + 0xb8]
jb 0x1002bd5b
mov eax, dword [esp + 0xa8]
mov ax, word [eax]
mov esi, dword [esp + 0x10]
mov edx, 0x3ff
and ax, dx
mov word [esp + 0x50], ax
mov ebp, 2
add esi, 0xfffffffe
mov ecx, dword [esp + 0xc0]
movzx edi, word [esi]
push ecx
lea edx, [esp + 0x9c]
push edx
push edi
call fcn.10029762
cmp word [esp + 0x50], 0x12
jne 0x1002bd38
push edi
lea eax, [esp + 0x9c]
push eax
call fcn.10029bdd
mov eax, dword [esp + 0x98]
and eax, dword [esp + 0x34]
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x4c], eax
cmp cl, 3
jae 0x1002bd8e
mov eax, 0xffff0000
cmp cl, 2
jne 0x1002bda1
mov cl, byte [esp + 0x30]
cmp byte [esp + 0x24], 1
ja 0x1002be6e
cmp eax, 0xffff0000
jne 0x1002be6e
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x44], 0xffff
mov dword [esp + 0x30], eax
mov cl, al
jmp 0x1002be8b
jne 0x1002be28
mov al, byte [esp + 0x4c]
cmp al, 1
ja 0x1002bdbc
mov eax, 0xffff0000
mov edx, dword [esp + 0x10]
add ebp, 2
sub edx, ebp
sub esi, 2
cmp edx, dword [esp + 0xb8]
jae 0x1002bd09
jmp 0x1002bd5b
movzx si, al
mov eax, 0x2200
or si, ax
mov al, byte [esp + 0x4f]
and al, 0x3f
mov cl, al
mov dl, al
and cl, 0xc6
and dl, 0xe4
cmp byte [esp + 0x24], 0
mov word [esp + 0x4c], si
mov byte [esp + 0x30], cl
mov byte [esp + 0x32], dl
jne 0x1002be07
movzx edx, si
and al, 0xc5
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], edx
mov byte [esp + 0x31], 4
jmp 0x1002bd6a
mov eax, dword [esp + 0x4c]
mov edx, eax
and edx, 0xff87
and bl, 0xc5
mov dword [esp + 0x44], edx
mov byte [esp + 0x31], 5
mov byte [esp + 0x33], bl
jmp 0x1002bd5f
movzx ecx, word [esp + 0x4c]
mov dword [esp + 0x44], ecx
jmp 0x1002bd5b
movzx dx, byte [esp + 0x24]
mov ecx, 0x2200
or dx, cx
movzx edx, dx
mov dword [esp + 0x44], edx
mov cl, bl
mov dl, bl
and cl, 0xc6
and dl, 0xe4
and bl, 0xc5
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], 3
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], bl
jmp 0x1002bd5f
mov eax, dword [esp + 0x24]
movzx edx, word [esp + 0x44]
and eax, 0xffff0000
or eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x27], 2
cmp byte [esp + 0x2b], 3
je 0x1002bee5
cmp byte [esp + 0x2c], 0
jne 0x1002bea2
test cl, cl
je 0x1002bea2
mov byte [esp + 0x2c], 1
cmp byte [esp + 0x2d], 0
jne 0x1002beb7
mov ecx, eax
shr ecx, 8
test cl, cl
je 0x1002beb7
mov byte [esp + 0x2d], 1
cmp byte [esp + 0x2e], 0
jne 0x1002becc
mov edx, eax
shr edx, 0x10
test dl, dl
je 0x1002becc
mov byte [esp + 0x2e], 1
cmp byte [esp + 0x2f], 0
jne case.0x1002bb36.4
shr eax, 0x18
test al, al
je case.0x1002bb36.4
mov byte [esp + 0x2f], 1
jmp case.0x1002bb36.4
cmp byte [esp + 0x2c], 0
jne 0x1002beff
mov dl, byte [esp + 0x3c]
cmp dl, cl
je 0x1002beff
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x2c], cl
cmp byte [esp + 0x2d], 0
jne 0x1002bf1e
mov dl, byte [esp + 0x3d]
mov ecx, eax
shr ecx, 8
cmp dl, cl
je 0x1002bf1e
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x2d], cl
cmp byte [esp + 0x2e], 0
jne 0x1002bf3d
mov dl, byte [esp + 0x3e]
mov ecx, eax
shr ecx, 0x10
cmp dl, cl
je 0x1002bf3d
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x2e], cl
cmp byte [esp + 0x2f], 0
jne case.0x1002bb36.4
mov cl, byte [esp + 0x3f]
shr eax, 0x18
cmp cl, al
je case.0x1002bb36.4
setae al
lea eax, [eax + eax + 1]
mov byte [esp + 0x2f], al
or eax, 0xffffffff
cmp dword [esp + 0x20], eax
je 0x1002c0f6
cmp dword [esp + 0x24], eax
je 0x1002c0f6
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
cmp cx, ax
jne 0x1002c18a
test byte [esp + 0x40], 3
je 0x1002c075
mov al, byte [esp + 0x22]
mov cl, byte [esp + 0x26]
mov byte [esp + 0x2b], al
mov bl, cl
cmp al, cl
je 0x1002c075
mov edi, dword [esp + 0x18]
lea eax, [edi - 1]
test eax, eax
je 0x1002c002
mov ebp, dword [esp + 0xb4]
mov esi, dword [esp + 0x14]
movzx eax, word [esi + 2]
test ax, ax
jne 0x1002bfc7
cmp ebp, 0xfffffffe
je 0x1002bffa
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xc0]
push ecx
push edx
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.1002aa83
cmp byte [esp + 0x61], 1
jne 0x1002bffa
mov dl, byte [esp + 0x62]
add byte [esp + 0x2b], dl
dec edi
add esi, 2
cmp edi, 1
jne 0x1002bfb9
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x1c]
lea eax, [edi - 1]
test eax, eax
je 0x1002c05b
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0xc0]
movzx eax, word [esi + 2]
test ax, ax
jne 0x1002c02b
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002c053
mov ecx, dword [esp + 0xa8]
push ecx
push ebp
lea edx, [esp + 0x68]
push edx
push eax
call fcn.1002aa83
cmp byte [esp + 0x61], 1
jne 0x1002c053
add bl, byte [esp + 0x62]
dec edi
add esi, 2
cmp edi, 1
jne 0x1002c018
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
movzx eax, byte [esp + 0x2b]
cmp al, bl
je 0x1002c075
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
and dword [esp + 0x40], 0xfffffffe
mov dword [esp + 0x5c], eax
test byte [esp + 0x40], 4
je 0x1002c09f
movzx eax, byte [esp + 0x27]
mov cl, byte [esp + 0x23]
and al, 0x3f
and cl, 0x3f
cmp cl, al
je 0x1002c09f
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
and dword [esp + 0x40], 0xfffffffb
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
xor ecx, ecx
lea edx, [ecx + 1]
cmp eax, ecx
je 0x1002c0ba
sub dword [esp + 0x7c], edx
jne 0x1002c0ba
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x80]
cmp eax, ecx
je 0x1002c0d6
sub dword [esp + 0x78], edx
jne 0x1002c0d6
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], ecx
sub dword [esp + 0x18], edx
sub dword [esp + 0x1c], edx
mov eax, 2
add dword [esp + 0x14], eax
add dword [esp + 0x10], eax
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], 0
jne 0x1002b0ec
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1002c1c8
cmp word [esi], 0
jne 0x1002c125
cmp dword [esp + 0xbc], 0xfffffffe
je 0x1002c1c8
mov edx, dword [esp + 0xbc]
mov edi, esi
mov eax, 1
mov esi, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0xc4]
push esi
mov esi, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x88]
push esi
mov esi, dword [esp + 0x84]
push esi
lea esi, [esp + 0x44]
push esi
push eax
push edx
push edi
push ecx
call fcn.1002ad4c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x1c
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffffe
pop ebp
add eax, 3
pop ebx
add esp, 0x94
ret 0x1c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1002c105
cmp word [edi], 0
jne 0x1002c1be
cmp edx, 0xfffffffe
je 0x1002c105
mov eax, 3
jmp 0x1002c133
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x1002c240
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x1002c240
cmp dword [esp + 0x2c], eax
je 0x1002c214
cmp dword [esp + 0x64], eax
jne 0x1002c204
mov al, byte [esp + 0x2c]
test al, al
je 0x1002c1fc
pop edi
pop esi
pop ebp
movzx eax, al
pop ebx
add esp, 0x94
ret 0x1c
mov al, byte [esp + 0x2d]
test al, al
jne 0x1002c1ec
mov al, byte [esp + 0x2e]
test al, al
jne 0x1002c1ec
mov al, byte [esp + 0x2f]
test al, al
jne 0x1002c1ec
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x1002c240
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x1002c240
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x94
ret 0x1c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x1c