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

Disassembly:
push 0xffffffffffffffff
push 0x427e41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
mov eax, dword [0x43416c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x4b4], eax
lea eax, [esi + 0x164]
push eax
lea ecx, [esp + 0x28]
call fcn.00403f50
lea ebp, [esi + 0x158]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x4c0], ebx
call fcn.0040a9d0
test al, al
jne 0x4066e1
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c0], 0xffffffff
call fcn.00404060
xor al, al
jmp 0x406b03
push edi
lea ecx, [esp + 0x10]
call fcn.00404620
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov ecx, ebp
mov byte [esp + 0x4c4], 1
call fcn.0040aa20
test eax, eax
je 0x406924
mov ecx, ebp
call fcn.0040ab10
push 4
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.0040ace0
test al, al
jne 0x40675a
lea ecx, [esp + 0x10]
call fcn.00404820
mov edx, dword [esp + 0x14]
push edx
call fcn.004043d0
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c4], 0xffffffff
call fcn.00404060
xor al, al
jmp 0x406b02
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
jbe 0x406924
jmp 0x406770
push 0x104
lea eax, [esp + 0x2b4]
push eax
mov ecx, ebp
call fcn.0040ace0
push 0x104
lea ecx, [esp + 0xac]
push ecx
mov ecx, ebp
call fcn.0040ace0
push 0x104
lea edx, [esp + 0x1b0]
push edx
mov ecx, ebp
call fcn.0040ace0
push 0x104
lea eax, [esp + 0x3b8]
push eax
mov ecx, ebp
call fcn.0040ace0
push 4
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.0040ace0
mov eax, 0xf
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea eax, [esp + 0x2b0]
mov byte [esp + 0x4c4], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406824
sub eax, edx
push eax
lea edx, [esp + 0x2b4]
push edx
lea ecx, [esp + 0x3c]
call fcn.00401930
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406850
sub eax, edx
push eax
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x58]
call fcn.00401930
lea eax, [esp + 0x1ac]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406875
sub eax, edx
push eax
lea ecx, [esp + 0x1b0]
push ecx
lea ecx, [esp + 0x74]
call fcn.00401930
lea eax, [esp + 0x3b4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4068a0
sub eax, edx
push eax
lea edx, [esp + 0x3b8]
push edx
lea ecx, [esp + 0x90]
call fcn.00401930
cmp dword [esp + 0x20], ebx
setne al
mov byte [esp + 0xa4], al
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
add edi, 4
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404fa0
push 1
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00404860
mov dword [edi], esi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x34]
mov dword [eax], esi
mov byte [esp + 0x4c4], 1
call fcn.004046d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x406770
mov esi, dword [edi]
cmp esi, edi
je 0x406992
mov edi, dword [esp + 0x4cc]
cmp dword [edi + 0x18], 0x10
mov edx, dword [edi + 0x14]
lea ecx, [esi + 8]
jb 0x406942
mov eax, dword [edi + 4]
jmp 0x406945
lea eax, [edi + 4]
push edx
mov edx, dword [ecx + 0x14]
push eax
push edx
push ebx
call fcn.00401150
test eax, eax
mov eax, dword [esp + 0x14]
je 0x406961
mov esi, dword [esi]
cmp esi, eax
jne 0x406931
jmp 0x40698e
cmp esi, eax
je 0x40698e
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [edx + 4], eax
call fcn.004046d0
push esi
call fcn.004043d0
mov eax, dword [esp + 0x1c]
add esp, 4
dec eax
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x14]
mov ecx, ebp
call fcn.0040ab10
mov ecx, dword [esp + 0x18]
push 4
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
push edx
mov ecx, ebp
call fcn.0040aef0
mov esi, dword [edi]
cmp esi, edi
je 0x406ab9
lea esp, [esp]
mov cl, byte [esi + 0x78]
xor eax, eax
cmp cl, bl
setne al
mov edi, 0x10
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x20], edi
jb 0x4069dd
mov ecx, dword [esi + 0xc]
jmp 0x4069e0
lea ecx, [esi + 0xc]
lea edx, [esp + 0x3b4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x4069e7
cmp dword [esi + 0x3c], edi
jb 0x4069fb
mov ecx, dword [esi + 0x28]
jmp 0x4069fe
lea ecx, [esi + 0x28]
lea edx, [esp + 0x1ac]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x406a05
cmp dword [esi + 0x58], edi
jb 0x406a19
mov ecx, dword [esi + 0x44]
jmp 0x406a1c
lea ecx, [esi + 0x44]
lea edx, [esp + 0xa8]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x406a23
cmp dword [esi + 0x74], edi
jb 0x406a37
mov ecx, dword [esi + 0x60]
jmp 0x406a3a
lea ecx, [esi + 0x60]
lea edx, [esp + 0x2b0]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x406a41
push 0x104
lea ecx, [esp + 0x3b8]
push ecx
mov ecx, ebp
call fcn.0040aef0
push 0x104
lea edx, [esp + 0x1b0]
push edx
mov ecx, ebp
call fcn.0040aef0
push 0x104
lea eax, [esp + 0xac]
push eax
mov ecx, ebp
call fcn.0040aef0
push 0x104
lea ecx, [esp + 0x2b4]
push ecx
mov ecx, ebp
call fcn.0040aef0
push 4
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0040aef0
mov esi, dword [esi]
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x4069c0
mov edi, eax
mov esi, dword [edi]
cmp esi, edi
mov dword [edi], edi
mov dword [edi + 4], edi
je 0x406ae3
mov edi, dword [esi]
lea ecx, [esi + 8]
call fcn.004046d0
push esi
call fcn.004043d0
mov eax, dword [esp + 0x18]
add esp, 4
cmp edi, eax
mov esi, edi
jne 0x406ac4
mov edi, eax
push edi
call fcn.004043d0
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c4], 0xffffffff
call fcn.00404060
mov al, 1
pop edi
mov ecx, dword [esp + 0x4b8]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4ac]
pop ebx
call fcn.0041def4
add esp, 0x4b8
ret 4