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

Disassembly:
push 0xffffffffffffffff
push 0x42458d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8c
mov eax, dword [esp + 0xf9c]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x5c], ecx
jne 0x406650
mov eax, dword [0x4324b4]
add eax, 0x11c
mov dword [esp + 0x2c], eax
jmp 0x406660
mov edx, dword [0x4324b4]
add edx, 0x130
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], edi
mov eax, dword [eax + 8]
cmp eax, ebx
mov dword [esp + 0x20], eax
jle 0x406d4b
mov ebp, dword [0x4280f0]
add ecx, 0x35d4
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x38]
push edi
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00407ad0
mov eax, dword [esp + 0xfac]
mov esi, 1
cmp eax, esi
mov dword [esp + 0xfa4], ebx
jne 0x406718
cmp dword [esp + 0x3c], ebx
jne 0x406718
cmp dword [esp + 0x28], 4
jge 0x406718
mov edx, dword [esp + 0x24]
push ebx
push ebx
push 0xf0
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
push eax
call dword [0x428728]
cmp eax, esi
je 0x406718
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xfa4], esi
call fcn.00423046
lea ecx, [esp + 0x40]
mov dword [esp + 0xfa4], 0xffffffff
call fcn.00423046
jmp 0x406d3a
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x40687d
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x78], ecx
lea edi, [esp + 0xc8]
mov dword [esp + 0x7c], ecx
mov byte [esp + 0xb88], bl
mov dword [esp + 0x80], ecx
lea edx, [esp + 0xb88]
mov dword [esp + 0x84], ecx
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0xb89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x207
mov dword [esp + 0xd0], 0x44
mov word [esp + 0x100], 5
mov dword [esp + 0xfc], esi
stosb byte es:[edi], al
call dword [0x4280ec]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [0x4324b4]
call fcn.00418b00
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfa8], 2
call fcn.00423232
cmp eax, 0xffffffff
je 0x4067e1
lea edx, [esp + 0x4c]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004231cc
mov eax, dword [eax]
push eax
call dword [0x4280e8]
lea ecx, [esp + 0x4c]
call fcn.00423046
lea eax, [esp + 0x78]
lea ecx, [esp + 0xc8]
mov edx, dword [esp + 0x18]
push eax
push ecx
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
push edx
call dword [0x4280e4]
test eax, eax
je 0x40685f
cmp dword [esp + 0xfac], ebx
jne 0x40685f
mov eax, dword [esp + 0x78]
mov edi, dword [0x4280e0]
push 0x32
push eax
call edi
test eax, eax
je 0x40685f
push esi
push ebx
push ebx
lea ecx, [esp + 0xb8]
push ebx
push ecx
call dword [0x4286dc]
test eax, eax
je 0x406852
lea edx, [esp + 0xac]
push edx
call dword [0x4286e0]
lea eax, [esp + 0xac]
push eax
call dword [0x4286e4]
mov ecx, dword [esp + 0x78]
push 0x32
push ecx
call edi
test eax, eax
jne 0x406820
lea edx, [esp + 0xb88]
push edx
call dword [0x4280e8]
mov byte [esp + 0xfa4], bl
lea ecx, [esp + 0x18]
jmp 0x406d09
cmp eax, esi
jne 0x406ba1
xor eax, eax
mov ecx, 0x11
mov dword [esp + 0x68], eax
lea edi, [esp + 0x10c]
mov dword [esp + 0x6c], eax
mov byte [esp + 0x770], bl
mov dword [esp + 0x70], eax
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x771]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x770]
mov dword [esp + 0x74], eax
push ecx
push 0x208
mov dword [esp + 0x114], 0x44
mov word [esp + 0x144], bx
mov dword [esp + 0x140], esi
call dword [0x4280dc]
lea edx, [esp + 0x770]
lea ecx, [esp + 0x14]
push edx
call fcn.0042304c
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0xfa8], 3
call fcn.004231fc
push 0x4311f4
lea ecx, [esp + 0x18]
call fcn.0042322c
mov eax, dword [esp + 0x14]
push 0x4311f0
push eax
call dword [0x4285fc]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x406b11
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x359]
mov byte [esp + 0x358], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push 0x4311ec
push ecx
mov ecx, dword [0x4324b4]
call fcn.00418b00
mov eax, dword [eax]
lea edx, [esp + 0x358]
push 0x208
push edx
push eax
call ebp
lea ecx, [esp + 0x64]
call fcn.00423046
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x565]
mov byte [esp + 0x564], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x4324b4]
lea eax, [esp + 0x60]
push 0x4311e8
push eax
call fcn.00418b00
mov eax, dword [eax]
lea ecx, [esp + 0x564]
push 0x208
push ecx
push eax
call ebp
lea ecx, [esp + 0x60]
call fcn.00423046
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x97d]
mov byte [esp + 0x97c], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x4324b4]
lea edx, [esp + 0x48]
push 0x4311e4
push edx
call fcn.00418b00
mov eax, dword [eax]
lea ecx, [esp + 0x97c]
push 0x208
push ecx
push eax
call ebp
lea ecx, [esp + 0x48]
call fcn.00423046
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xd91]
mov byte [esp + 0xd90], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x4324b4]
lea edx, [esp + 0x54]
push 0x4311e0
push edx
call fcn.00418b00
mov eax, dword [eax]
lea ecx, [esp + 0xd90]
push 0x208
push ecx
push eax
call ebp
lea ecx, [esp + 0x54]
call fcn.00423046
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.0042313c
lea eax, [esp + 0x358]
mov byte [esp + 0xfa4], 4
push eax
push 0x4311ec
lea ecx, [esp + 0x18]
call fcn.00423226
lea ecx, [esp + 0x564]
push ecx
push 0x4311e8
lea ecx, [esp + 0x18]
call fcn.00423226
lea edx, [esp + 0x97c]
lea ecx, [esp + 0x10]
push edx
push 0x4311e4
call fcn.00423226
lea eax, [esp + 0xd90]
lea ecx, [esp + 0x10]
push eax
push 0x4311e0
call fcn.00423226
lea ecx, [esp + 0x10]
push 0x4311dc
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.00423160
mov eax, dword [eax]
push esi
push eax
call dword [0x428608]
add esp, 8
lea ecx, [esp + 0x58]
call fcn.00423046
push 0x4311d0
push esi
call dword [0x428604]
push esi
call dword [0x4285f4]
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xfa4], 3
call fcn.00423046
lea eax, [esp + 0x68]
lea ecx, [esp + 0x10c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push edx
call dword [0x4280e4]
test eax, eax
je 0x406b91
cmp dword [esp + 0xfac], ebx
jne 0x406b91
mov eax, dword [esp + 0x68]
mov esi, dword [0x4280e0]
push 0x32
push eax
call esi
test eax, eax
je 0x406b91
push 1
push ebx
push ebx
lea ecx, [esp + 0x9c]
push ebx
push ecx
call dword [0x4286dc]
test eax, eax
je 0x406b84
lea edx, [esp + 0x90]
push edx
call dword [0x4286e0]
lea eax, [esp + 0x90]
push eax
call dword [0x4286e4]
mov ecx, dword [esp + 0x68]
push 0x32
push ecx
call esi
test eax, eax
jne 0x406b51
mov byte [esp + 0xfa4], bl
lea ecx, [esp + 0x14]
jmp 0x406d09
cmp eax, 2
jne 0x406c54
mov edx, dword [esp + 0x44]
push 0x4311c0
push edx
call dword [0x4285d0]
add esp, 8
test eax, eax
jne 0x406d0e
lea eax, [esp + 0x30]
push eax
push 0x20
call dword [0x4280d8]
push eax
call dword [0x428018]
push 0x10
call fcn.00423070
add esp, 4
lea ecx, [esp + 0x88]
mov esi, eax
push ecx
push 0x4311ac
push ebx
mov dword [esi], 1
call dword [0x42801c]
mov edx, dword [esp + 0x88]
push ebx
mov dword [esi + 4], edx
mov eax, dword [esp + 0x90]
push ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 2
mov ecx, dword [esp + 0x38]
push ebx
push esi
push ebx
push ecx
call dword [0x428010]
mov edx, dword [esp + 0x30]
push edx
call dword [0x4280d4]
push esi
call fcn.0042303a
add esp, 4
push 0x1e
call dword [0x4280d0]
push ebx
push 6
call dword [0x4286e8]
jmp 0x406d0e
cmp eax, 3
jne 0x406d0e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x151]
mov byte [esp + 0x150], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x150]
push eax
push 0x207
call dword [0x4280ec]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [0x4324b4]
push edx
call fcn.00418b00
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0xfa8], 5
call fcn.00423232
cmp eax, 0xffffffff
je 0x406cd8
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
call fcn.004231cc
mov eax, dword [eax]
push eax
call dword [0x4280e8]
lea ecx, [esp + 0x50]
call fcn.00423046
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push 0x4323a8
push ecx
push 0x4311a4
push ebx
call dword [0x428688]
lea edx, [esp + 0x150]
push edx
call dword [0x4280e8]
mov byte [esp + 0xfa4], bl
lea ecx, [esp + 0x1c]
call fcn.00423046
lea ecx, [esp + 0x44]
mov dword [esp + 0xfa4], 6
call fcn.00423046
lea ecx, [esp + 0x40]
mov dword [esp + 0xfa4], 0xffffffff
call fcn.00423046
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x40668d
cmp dword [esp + 0xfac], ebx
jne 0x406dda
push 0xc8
call dword [0x4280d0]
mov esi, dword [0x428760]
lea eax, [esp + 0x20]
push eax
call esi
mov edi, dword [0x4286f0]
push eax
call edi
call dword [0x4280cc]
cmp dword [esp + 0x20], eax
je 0x406dda
push 1
call dword [0x4280c8]
push eax
push ebx
call esi
push eax
call edi
push eax
call dword [0x4286f4]
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x20]
push ecx
call dword [0x428700]
mov ecx, ebp
call fcn.00423220
push ebx
call dword [0x4280c8]
push eax
push ebx
call esi
push eax
call edi
push eax
call dword [0x4286f4]
mov edx, dword [ebp + 0x20]
push edx
call dword [0x4286f8]
cmp eax, ebx
je 0x406dda
push eax
call dword [0x4286fc]
mov ecx, dword [esp + 0xf9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf98
ret 4