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

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0x9c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x5c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
push esi
mov esi, dword [eax + 0x58]
xor edx, edx
push edi
xor edi, edi
cmp esi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], esi
je 0x402d14
jmp 0x402730
mov esi, dword [esp + 0x18]
jmp 0x402730
mov eax, dword [esi + 0x2c]
cmp eax, 0xdd
lea ecx, [edx*4]
mov dword [esi + 0x28], ecx
je 0x402cbd
cmp eax, 0xde
je 0x402cc4
cmp eax, 0xdf
je 0x402cbd
cmp eax, 0xe4
je 0x402cbd
test ebp, ebp
setne dl
lea eax, [esp + 0x30]
push edx
mov edx, dword [ebx + 4]
push eax
mov eax, esi
call 0x400630
mov ecx, dword [esp + 0x14]
test cl, 1
je 0x4027bf
cmp byte [esp + 0x40], 2
jne 0x402794
cmp esi, dword [esp + 0x2c]
jne 0x4027bf
cmp dword [edi + 0x24], 0
mov eax, dword [ebx + 4]
jne 0x4027b2
mov ecx, dword [eax + 0x128]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x24]
add ecx, 1
mov byte [eax], 1
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x2c], 8
jne 0x402869
mov edx, dword [esi + 0x38]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x60]
and edx, 0xffffff
mov eax, dword [eax + edx*4]
mov dl, byte [eax + 0x74]
add ecx, ecx
add ecx, ecx
mov dword [eax + 0x68], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
test byte [eax + 0x70], 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x13], dl
je 0x402846
mov eax, dword [esi + 0x38]
mov edx, dword [ebx + 4]
and eax, 0xffffff
cmp eax, dword [edx + 0xd4]
jg 0x402846
cmp dword [ebx + 0xe4], 0
je 0x40283f
mov edx, dword [edx + 0x120]
mov edx, dword [edx + eax*4]
mov eax, dword [ebx + 0xe4]
mov edi, dword [ebx + 0xdc]
mov dword [eax + edi*8], edx
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebx + 0xe4]
mov dword [edx + eax*8 + 4], ecx
add dword [ebx + 0xdc], 1
cmp dword [esi + 0x24], 0
mov eax, dword [ebx + 4]
jne 0x402cfd
mov ecx, dword [eax + 0x128]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push eax
call dword [edx]
mov dword [esi + 0x24], eax
jmp 0x402cfd
push ecx
push esi
mov esi, dword [ebx + 0xbc]
lea edi, [ebx + 0xb4]
mov ebx, dword [ebx + 4]
lea edx, [esp + 0x28]
call fcn.00402640
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x2c]
cmp eax, 0xc
je 0x4028c1
cmp eax, 9
je 0x4028c1
cmp eax, 0x1c
je 0x4028c1
cmp eax, 0xe0
je 0x4028c1
cmp eax, 6
je 0x4028c1
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0xa8]
and ah, 0xef
cmp eax, 0xa
jne 0x4028eb
add dword [edi + 0x94], 1
jmp 0x4028eb
test ebp, ebp
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x14]
je 0x4028e0
mov edi, dword [eax + 0x74]
mov ebx, dword [eax + 0x7c]
lea esi, [ecx*4]
mov dword [ebx + edi*4], esi
add dword [eax + 0x74], 1
mov edi, dword [esp + 0xa8]
test ebp, ebp
jne 0x402962
cmp byte [esp + 0x13], 0
je 0x402940
mov al, byte [esp + 0x40]
cmp al, 1
jne 0x402957
cmp dword [edx + 0x2c], 0x17
jne 0x40293b
mov ecx, dword [edx + 0x10]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 1
mov dword [eax + 0x40], edx
mov dword [eax + 0x54], ecx
mov eax, dword [edi + 4]
push 7
push eax
call 0x3cec30
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x40]
mov bl, 1
call 0x3ffa90
add dword [esp + 0x14], 2
mov edx, dword [esp + 0x18]
mov byte [esp + 0x13], 0
mov bl, byte [esp + 0x40]
mov eax, dword [edi + 4]
mov esi, edx
call 0x3ffa90
mov ecx, dword [esp + 0x14]
jmp 0x402ca3
cmp al, 2
jne 0x402904
mov byte [esp + 0x40], 1
jmp 0x40293b
mov esi, dword [esp + 0x48]
mov bl, byte [esp + 0x40]
and esi, 0x7f
add esi, esi
add esi, esi
or esi, dword [ebp + ecx*4]
cmp bl, 2
mov dword [ebp + ecx*4], esi
jne 0x4029f8
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
shl edi, 4
and eax, 1
or eax, edi
mov edi, dword [esp + 0x68]
and edi, 1
add eax, eax
or eax, edi
mov edi, dword [esp + 0x70]
add edi, edi
add edi, edi
add edi, edi
or edi, dword [esp + 0x64]
add eax, eax
and edi, 0x3f
or eax, edi
mov edi, dword [esp + 0x50]
shl eax, 6
and edi, 0xff
or eax, edi
mov edi, dword [esp + 0x60]
add eax, eax
and edi, 1
or eax, edi
mov edi, dword [esp + 0x4c]
shl eax, 6
and edi, 0x3f
or eax, edi
mov edi, dword [esp + 0x5c]
add eax, eax
and edi, 1
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebp + ecx*4], eax
add ecx, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
jmp 0x402cf2
cmp bl, 4
jne 0x402ae9
mov ebx, dword [esp + 0x94]
mov eax, dword [esp + 0x44]
mov edi, eax
mov edx, ebx
and edx, 0x3ffff
sar eax, 4
shl edi, 0x13
or edx, edi
shl eax, 0x11
shl edx, 9
or edx, esi
mov esi, dword [esp + 0x84]
and esi, 3
or eax, esi
mov esi, dword [esp + 0x80]
shl eax, 5
and esi, 0x1f
or eax, esi
mov esi, dword [esp + 0x7c]
add eax, eax
add eax, eax
add eax, eax
and esi, 7
or eax, esi
mov esi, dword [esp + 0x18]
shr ebx, 4
shl eax, 4
and ebx, 0xfc000
or eax, ebx
or eax, dword [ebp + ecx*4 + 4]
or edx, 3
mov dword [ebp + ecx*4], edx
mov dword [ebp + ecx*4 + 4], eax
cmp dword [esi + 0x2c], 0xa
jne 0x402ad5
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
and esi, 7
add esi, esi
and edi, 1
or esi, edi
mov edi, dword [esp + 0x68]
add esi, esi
and edi, 1
or esi, edi
mov edi, dword [esp + 0x50]
shl esi, 7
and edi, 0x7f
or esi, edi
mov edi, dword [esp + 0x4c]
shl esi, 7
and edi, 0x7f
or esi, edi
shl esi, 9
or esi, edx
mov edx, dword [esp + 0x90]
and edx, 0x7f
mov dword [ebp + ecx*4], esi
mov esi, dword [esp + 0x74]
shl edx, 0x14
and esi, 1
or edx, esi
add edx, edx
add edx, edx
or edx, eax
mov dword [ebp + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
add ecx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
jmp 0x402cf2
mov edx, dword [esp + 0x44]
mov eax, edx
shl eax, 0x1c
or eax, esi
sar edx, 4
or al, 1
shl edx, 0x1d
mov esi, edx
or esi, dword [ebp + ecx*4 + 4]
cmp bl, 3
mov dword [ebp + ecx*4 + 4], esi
mov dword [ebp + ecx*4], eax
jne 0x402b7d
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
and edi, 7
add edi, edi
and edx, 1
or edi, edx
mov edx, dword [esp + 0x68]
add edi, edi
and edx, 1
or edi, edx
mov edx, dword [esp + 0x64]
add edi, edi
and edx, 1
or edi, edx
mov edx, dword [esp + 0x58]
shl edi, 6
mov ebx, edx
and ebx, 0x3f
or edi, ebx
mov ebx, dword [esp + 0x60]
add edi, edi
and ebx, 1
or edi, ebx
mov ebx, dword [esp + 0x4c]
shl edi, 6
and ebx, 0x3f
or edi, ebx
mov ebx, dword [esp + 0x5c]
add edi, edi
and ebx, 1
or edi, ebx
shl edi, 8
or edx, 0x30
or edi, eax
shr edx, 4
mov dword [ebp + ecx*4], edi
or edx, esi
jmp 0x402ad1
mov edx, dword [esp + 0x4c]
and edx, 0x7f
shl edx, 9
or edx, eax
mov eax, dword [esp + 0x3c]
shr eax, 1
and eax, 1
mov dword [ebp + ecx*4], edx
je 0x402ba7
mov edi, dword [esp + 0x9c]
and edi, 0x7ff
jmp 0x402bd4
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
and edi, 7
and ebx, 1
add edi, edi
or edi, ebx
mov ebx, dword [esp + 0x68]
and ebx, 1
add edi, edi
or edi, ebx
mov ebx, dword [esp + 0x50]
and ebx, 0x7f
shl edi, 7
or edi, ebx
mov bl, byte [esp + 0x40]
shl edi, 0x10
or edi, edx
cmp byte [esp + 0x13], 0
mov dword [ebp + ecx*4], edi
je 0x402bee
or esi, 2
mov byte [esp + 0x13], 0
jmp 0x402bfb
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x2c], 0x17
jne 0x402bff
or esi, 1
mov dword [ebp + ecx*4 + 4], esi
test eax, eax
je 0x402c17
mov eax, dword [esp + 0x98]
and eax, 0xf
add eax, eax
add eax, eax
or dword [ebp + ecx*4 + 4], eax
jmp 0x402c3c
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
and edx, 7
add edx, edx
and eax, 1
or edx, eax
mov eax, dword [esp + 0x74]
add edx, edx
and eax, 1
or edx, eax
add edx, edx
add edx, edx
or dword [ebp + ecx*4 + 4], edx
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
and eax, 3
shl eax, 5
and edx, 0x1f
or eax, edx
shl eax, 7
or eax, dword [ebp + ecx*4 + 4]
test byte [esp + 0x3c], 1
mov dword [ebp + ecx*4 + 4], eax
je 0x402c76
mov edx, dword [esp + 0x88]
and edx, 0x3fff
jmp 0x402c9a
mov edx, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
and edx, 0x7f
and esi, 1
add edx, edx
or edx, esi
mov esi, dword [esp + 0x54]
shl edx, 7
and esi, 0x7f
or edx, esi
shl edx, 0xe
or edx, eax
mov dword [ebp + ecx*4 + 4], edx
cmp bl, 2
jne 0x402ad5
mov edx, dword [esp + 0x18]
add ecx, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
jmp 0x402cf2
cmp eax, 0xde
jne 0x402d01
mov eax, dword [esi + 0x38]
mov edi, dword [ebx + 4]
mov edi, dword [edi + 0x6c]
and eax, 0xffffff
mov eax, dword [edi + eax*4]
push edx
mov dword [eax + 0x3c], ecx
push esi
mov esi, dword [ebx + 0xbc]
lea edi, [ebx + 0xb4]
mov ebx, dword [ebx + 4]
lea edx, [esp + 0x28]
call fcn.00402640
mov ebx, dword [esp + 0xa8]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esi + 4]
test esi, esi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
jne 0x402722
test dl, 1
je 0x402d3d
cmp dword [edi + 0x24], 0
mov ebx, dword [ebx + 4]
jne 0x402d33
mov ecx, dword [ebx + 0x128]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push ebx
call dword [edx]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x24]
add dword [esp + 0x14], 1
jmp 0x402d98
mov ecx, dword [edi + 0x24]
cmp byte [ecx], 1
jne 0x402d56
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x74], 0
je 0x402d9b
mov edx, dword [eax]
cmp dword [edx + 4], edi
jne 0x402d9b
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 0x10]
push 0
push 0
push 1
mov dword [eax + 0x40], edi
mov dword [eax + 0x54], ecx
mov eax, dword [ebx + 4]
push 7
push eax
call 0x3cec30
mov ebx, dword [ebx + 4]
mov esi, dword [ebx + 0x40]
cmp dword [esi + 0x24], 0
jne 0x402d90
mov ecx, dword [ebx + 0x128]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
push ebx
call dword [edx]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
add dword [esp + 0x14], 2
mov byte [eax], 1
test ebp, ebp
mov eax, dword [esp + 0x14]
je 0x402dac
or dword [ebp + eax*4 - 4], 1
lea ebp, [ebp + eax*4 - 4]
pop edi
pop esi
add eax, eax
pop ebp
add eax, eax
pop ebx
add esp, 0x94
ret 8