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

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0xdc
mov ebp, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, ebp
mov dword [esp + 0x5c], ebp
movzx eax, al
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xf0]
mov dword [eax + 0x270], 0
lea ebx, [eax + 0x270]
mov dword [ebx + 0x68], 0
mov eax, dword [esp + 0xf0]
mov ecx, ebx
add eax, 0x274
mov edi, eax
mov dword [esp + 0x18], eax
xor eax, eax
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x6c
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, ebp
cmp al, 0xc
ja 0x4068b3
mov dword [esp + 4], edx
lea edx, [esp + 0x64]
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x60]
mov dword [esp], edx
mov edx, ebx
mov dword [esp + 8], esi
add eax, 0x4dc
call fcn.004060c0
mov dword [esp + 0x4c], eax
cmp eax, 0xffffff88
ja 0x406863
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x44], esi
jb 0x4068b3
mov edi, dword [ebx + esi*4]
lea eax, [esi + 1]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x4068ca
mov edx, dword [esp + 0xf0]
mov eax, esi
lea esi, cs:[esi]
nop
mov edi, eax
lea eax, [eax - 1]
mov ecx, dword [edx + edi*4 + 0x26c]
test ecx, ecx
je 0x4063b0
mov edx, dword [esp + 0x44]
sub edx, esi
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0xf0]
mov ebp, dword [esp + 0x60]
add eax, 0x2dc
mov dword [esp + 0x10], eax
cmp edi, 1
jbe 0x4068e1
mov eax, dword [esp + 0x18]
lea ecx, [ebx + edi*4]
xor edx, edx
lea esi, [esi]
mov ebx, edx
add eax, 4
add edx, dword [eax - 4]
mov dword [eax + 0x34], ebx
cmp ecx, eax
jne 0x406400
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x48], edx
mov dword [eax + 0x2a8], edx
test ebp, ebp
je 0x406907
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0xf0]
lea esi, [esi]
movzx ecx, byte [esi + eax + 0x4dc]
lea ebx, [esi + ecx*4 + 0x2a8]
mov edx, ecx
mov ecx, dword [ebx]
lea edi, [ecx + 1]
mov dword [ebx], edi
mov edi, dword [esp + 0x10]
lea ecx, [edi + ecx*2]
mov byte [ecx], al
add eax, 1
mov byte [ecx + 1], dl
cmp eax, ebp
jb 0x406440
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xf0]
mov edi, dword [esp + 0x20]
sub ecx, esi
mov dword [eax + 0x2a8], 0
lea esi, [ecx - 1]
cmp edi, 1
jbe 0x406529
mov edx, dword [esp + 0xf0]
lea eax, [ecx*4]
add esi, edi
sub edx, eax
xor eax, eax
lea esi, cs:[esi]
lea esi, cs:[esi]
lea esi, [esi]
mov ebp, dword [edx + ecx*4 + 0x274]
mov ebx, eax
mov dword [edx + ecx*4 + 4], ebx
shl ebp, cl
add ecx, 1
add eax, ebp
cmp esi, ecx
jne 0x4064c0
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x406529
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xf0]
mov ebp, esi
imul ebx, ecx, 0x34
lea esi, [eax + edi*4]
lea edi, [eax + 4]
lea esi, cs:[esi]
mov eax, edi
lea esi, cs:[esi]
lea esi, [esi]
mov edx, dword [eax]
add eax, 4
shr edx, cl
mov dword [eax + ebx - 4], edx
cmp esi, eax
jne 0x406510
add ecx, 1
add ebx, 0x34
cmp ecx, ebp
jb 0x406500
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
mov eax, edi
sub eax, esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x406849
mov ebp, dword [esp + 0x10]
add eax, eax
sub esi, edi
mov dword [esp + 0x54], eax
add eax, ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x58], eax
movzx eax, byte [ebp + 1]
mov esi, dword [esp + 0x38]
movzx ebx, byte [ebp]
mov edi, dword [esp + 0x14]
add esi, eax
mov edx, dword [esp + eax*4 + 0x68]
mov word [esp + 0x18], bx
mov ecx, esi
mov ebx, 1
sub edi, eax
shl ebx, cl
mov dword [esp + 0x1c], esi
lea ebx, [ebx + edx]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x30]
cmp esi, ebx
jb 0x406878
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0xf0]
lea ebx, [esi + edi]
mov esi, 1
test ebx, ebx
cmovg esi, ebx
mov ecx, dword [ecx + esi*4 + 0x2a4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + edx*4 + 4]
imul ecx, edi, 0x34
add ecx, dword [esp + 0xf0]
mov esi, dword [ecx]
mov dword [esp + 0x9c], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0xa0], esi
mov esi, dword [ecx + 8]
mov dword [esp + 0xa4], esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0xa8], esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0xac], esi
mov esi, dword [ecx + 0x14]
mov dword [esp + 0xb0], esi
mov esi, dword [ecx + 0x18]
mov dword [esp + 0xb4], esi
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0xb8], esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0xbc], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0xc0], esi
mov esi, dword [ecx + 0x28]
mov dword [esp + 0xc4], esi
mov esi, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], ecx
cmp ebx, 1
jle 0x406775
mov esi, dword [esp + 0x20]
mov ebx, edi
mov esi, dword [esp + esi*4 + 0x9c]
test esi, esi
je 0x406775
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x18]
mov ecx, edx
lea esi, [edx + esi*4]
lea esi, cs:[esi]
lea esi, cs:[esi]
lea esi, cs:[esi]
mov word [ecx], ax
add ecx, 4
mov byte [ecx - 2], bl
mov byte [ecx - 1], 1
cmp esi, ecx
jne 0x406760
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x48], ebx
je 0x406834
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
sub esi, ebx
mov ebx, edi
mov edi, dword [esp + 0xf0]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0x27], bl
lea esi, [edi + esi*2]
mov edi, dword [esp + 0x54]
add edi, dword [esp + 0xf0]
mov dword [esp + 0x1c], edi
lea esi, [esi]
movzx edi, byte [esi + 0x2dd]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
lea ecx, [edi + ebx]
mov ebx, 1
mov eax, dword [esp + edi*4 + 0x9c]
shl ebx, cl
movzx ecx, byte [esi + 0x2dc]
sub ebp, edi
add ebx, eax
shl ecx, 8
add cx, word [esp + 0x18]
mov word [esp + 0x10], cx
movzx ecx, byte [esp + 0x27]
add ebp, ecx
nop
movzx ecx, word [esp + 0x10]
add eax, 1
mov byte [edx + eax*4 - 1], 2
mov word [edx + eax*4 - 4], cx
mov ecx, ebp
mov byte [edx + eax*4 - 2], cl
cmp eax, ebx
jb 0x406800
mov dword [esp + edi*4 + 0x9c], ebx
add esi, 2
cmp dword [esp + 0x1c], esi
jne 0x4067c0
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
add ebp, 2
mov dword [esp + eax*4 + 0x68], edi
cmp dword [esp + 0x34], ebp
jne 0x406630
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x2c]
shl edx, 0x10
and eax, 0xff00ffff
or eax, edx
mov ah, 1
mov dword [edi], eax
mov eax, dword [esp + 0x4c]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, edi
mov edi, dword [esp + 0x28]
cmp edx, edi
jae 0x406834
mov esi, dword [esp + 0x2c]
lea edx, [esi + edx*4 + 4]
mov esi, dword [esp + 0x58]
lea ebx, [esi + edi*4]
movzx esi, word [esp + 0x18]
lea esi, cs:[esi]
nop
mov word [edx], si
add edx, 4
mov byte [edx - 2], cl
mov byte [edx - 1], 1
cmp ebx, edx
jne 0x4068a0
jmp 0x406834
mov dword [esp + 0x4c], 0xffffffd4
mov eax, dword [esp + 0x4c]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], eax
jmp 0x4063d7
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x48], 0
mov dword [eax + 0x2a8], 0
test ebp, ebp
jne 0x406428
jmp 0x406849
mov dword [eax + 0x2a8], 0
mov ecx, dword [esp + 0x44]
sub ecx, esi
lea esi, [ecx - 1]
jmp 0x406496