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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460c76
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [edi + 0x1e4]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.00401bb0
push 1
push 0x468b14
lea eax, [esp + 0x28]
mov dword [esp + 0xd8], esi
call fcn.00404450
push esi
lea ebx, [edi + 0x1c8]
push ebx
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.00404540
push 3
push 0x468e38
mov eax, esi
call fcn.00404450
mov eax, dword [esp + 0x24]
mov esi, 0x10
cmp dword [esp + 0x38], esi
jae 0x406c78
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00447490
add esp, 8
test eax, eax
je 0x406cb7
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
cmp dword [esp + 0x38], esi
mov edi, eax
jb 0x406cb0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042a2ef
add esp, 4
mov eax, edi
jmp 0x406f8b
xor eax, eax
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.00446ce4
add esp, 4
push 0x40
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.0044bc10
xor eax, eax
add esp, 0xc
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xd0], 1
cmp dword [ebx + 0x18], esi
jb 0x406d14
mov edx, dword [ebx + 4]
jmp 0x406d17
lea edx, [ebx + 4]
mov eax, edx
lea ebx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406d20
sub eax, ebx
mov ebx, eax
cmp ebx, 0x40
jb 0x406d4b
push 0x3f
push edx
lea ecx, [esp + 0x70]
push 0x40
push ecx
call fcn.00445a61
mov byte [esp + 0xb7], 0
jmp 0x406d5e
push ebx
push edx
lea edx, [esp + 0x70]
push 0x40
push edx
call fcn.00445a61
mov byte [esp + ebx + 0x78], 0
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp dword [esp + 0x38], esi
jae 0x406d6f
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push ecx
call fcn.004076e0
cmp dword [esp + 0x38], esi
mov bl, al
mov eax, dword [esp + 0x24]
jae 0x406d89
lea eax, [esp + 0x24]
push eax
call fcn.004475dd
add esp, 4
test bl, bl
jne 0x406dd3
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov edi, eax
lea eax, [esp + 0x4c]
call fcn.004076b0
cmp dword [esp + 0x38], esi
jb 0x406cb0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042a2ef
add esp, 4
mov eax, edi
jmp 0x406f8b
lea ecx, [esp + 0x4c]
call fcn.00407850
test al, al
jne 0x406e0f
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov esi, eax
lea eax, [esp + 0x4c]
call fcn.004076b0
lea ecx, [esp + 0x20]
call fcn.00401b20
mov eax, esi
jmp 0x406f8b
mov ecx, dword [esp + 0xac]
xor ebx, ebx
cmp ecx, ebx
jne 0x406e22
mov dword [esp + 0x14], ebx
jmp 0x406e32
mov eax, dword [esp + 0xb0]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
jbe 0x406f33
test ecx, ecx
je 0x406f22
mov eax, dword [esp + 0xb0]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x406f22
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x406f22
push 0x78
call fcn.0042a2c4
add esp, 4
test eax, eax
je 0x406e7f
call fcn.00402170
mov ebx, eax
jmp 0x406e81
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x406fba
push 0x10
lea ecx, [esi + 0x400]
push ecx
xor eax, eax
lea edx, [esp + 0x44]
push 0x10
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.00445a61
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406ec0
sub eax, edx
push eax
lea edi, [ebx + 0x40]
push esi
mov ecx, edi
call fcn.00401d40
push edi
call fcn.00401350
lea ecx, [ebx + 0x5c]
lea eax, [esp + 0x3c]
call fcn.00411770
test al, al
je 0x406faf
add ebx, 8
lea edx, [esi + 0x200]
push ebx
call fcn.00401330
mov esi, dword [esp + 0x10]
add esi, 0x200
lea ebx, [esp + 0x1c]
call fcn.004075f0
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add ebx, 1
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
jb 0x406e41
mov eax, dword [edi]
push 6
mov ecx, edi
mov edx, dword [eax + 0x1c]
call edx
lea esi, [esp + 0x4c]
call fcn.00407c30
mov eax, dword [esp + 0xac]
xor esi, esi
cmp eax, esi
je 0x406f5d
push eax
call fcn.0042a2ef
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
jb 0x406f86
mov eax, dword [esp + 0x24]
push eax
call fcn.0042a2ef
add esp, 4
mov eax, 6
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00445276
mov esp, ebp
pop ebp
ret
mov esi, ebx
call fcn.00406fd0
mov edi, dword [esp + 0x10]
call fcn.004073e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 3
jmp 0x406f39