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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push edi
lea edi, [ebp - 0x7c]
mov ecx, 0x1f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jbe 0x402516
mov eax, dword [ebp - 0x18]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040146a
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
cmp dword [ebp - 8], 0
je 0x40250d
jmp 0x402954
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 2]
add edx, 2
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jbe 0x40257b
mov eax, dword [ebp - 0x18]
add eax, 9
and eax, 0xfffffff8
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x28
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040146a
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
cmp dword [ebp - 8], 0
je 0x402572
jmp 0x402954
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 2]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx]
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], 2
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], 0xffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401456
add esp, 4
cmp eax, 1
jne 0x4025cd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], 0xfffffffe
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x74], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x40261c
jmp 0x402954
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
imul edx, edx, 0x28
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
movsx eax, word [edx]
imul eax, eax, 0x28
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
jmp 0x40267f
mov eax, dword [ebp - 0x30]
add eax, 0x28
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x38]
add ecx, 8
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
jae 0x402782
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ax, word [edx]
mov word [ecx + 0xc], ax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ax, word [edx + 4]
mov word [ecx + 0xe], ax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
call fcn.00401325
add esp, 8
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
push ecx
call fcn.00401325
add esp, 8
add eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x14]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x3c]
movsx ecx, byte [eax]
and ecx, 3
mov dword [ebp - 0x7c], ecx
je 0x40270b
cmp dword [ebp - 0x7c], 2
je 0x402718
jmp 0x402725
mov edx, 1
mov eax, dword [ebp - 0x30]
mov word [eax], dx
jmp 0x40272d
mov ecx, 2
mov edx, dword [ebp - 0x30]
mov word [edx], cx
jmp 0x40272d
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov word [ecx], ax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x40]
jne 0x40277d
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
cmp dword [ebp - 0x48], ecx
jge 0x40277d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x48]
movsx edx, word [eax + ecx*2]
imul edx, edx, 0x28
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
jmp 0x402664
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x4c]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x54], edx
xor eax, eax
mov word [ebp - 0x58], ax
jmp 0x4027bd
mov ecx, dword [ebp - 0x4c]
add ecx, 4
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x54]
add edx, 2
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jae 0x4027e3
movsx ecx, word [ebp - 0x58]
imul ecx, ecx, 0x28
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x4c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x54]
movsx ecx, word [eax]
add ecx, 1
mov word [ebp - 0x58], cx
jmp 0x4027ab
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
jmp 0x402816
mov ecx, dword [ebp - 0x30]
add ecx, 0x28
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x34]
jae 0x402954
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x5c]
jne 0x402875
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x5c]
movsx ecx, word [eax + 0xc]
mov edx, dword [ebp - 0x60]
movsx eax, word [edx + 0xc]
sub ecx, eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x5c]
movsx edx, word [ecx + 0xe]
mov eax, dword [ebp - 0x60]
movsx ecx, word [eax + 0xe]
sub edx, ecx
mov dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.004029a0
add esp, 8
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0x28
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x6c]
mov byte [edx + 2], al
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
movsx ecx, word [eax + 0xc]
mov edx, dword [ebp - 0x30]
movsx eax, word [edx + 0xc]
sub ecx, eax
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x70]
movsx edx, word [ecx + 0xe]
mov eax, dword [ebp - 0x30]
movsx ecx, word [eax + 0xe]
sub edx, ecx
mov dword [ebp - 0x78], edx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.004029a0
add esp, 8
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x30]
mov dl, byte [ebp - 0x6c]
mov byte [ecx + 3], dl
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
and ecx, 3
je 0x4028e7
mov edx, dword [ebp - 0x30]
movzx eax, word [edx]
or eax, 0x100
mov ecx, dword [ebp - 0x30]
mov word [ecx], ax
jmp 0x40293d
mov edx, dword [ebp - 0x30]
movsx eax, byte [edx + 3]
mov ecx, dword [ebp - 0x30]
movsx edx, byte [ecx + 2]
cmp eax, edx
jne 0x402927
mov eax, dword [ebp - 0x30]
movsx ecx, byte [eax + 3]
cmp ecx, 4
je 0x402907
jmp 0x4028d4
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.004011d6
add esp, 0x10
test eax, eax
je 0x402925
jmp 0x4028d4
jmp 0x40293d
mov eax, dword [ebp - 0x30]
movsx ecx, byte [eax + 2]
mov edx, dword [ebp - 0x30]
movsx eax, byte [edx + 3]
neg eax
cmp ecx, eax
jne 0x40293d
jmp 0x4028d4
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
jmp 0x40280d
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x402978]
call fcn.0047a530
pop eax
pop edx
pop edi
add esp, 0x7c
cmp ebp, esp
call fcn.0047a500
mov esp, ebp
pop ebp
ret