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

Disassembly:
push 0xffffffffffffffff
push 0x44a526
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x462e60]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462e60]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [esp + 0x70]
cmp dword [esi + 0x18], 0x10
mov ebp, ecx
mov dword [esp + 0x18], ebp
jb 0x406857
mov eax, dword [esi + 4]
jmp 0x40685a
lea eax, [esi + 4]
push eax
call fcn.00433144
push eax
call fcn.004330e2
add esp, 8
mov edi, eax
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406870
sub eax, ecx
push eax
push edi
mov ecx, esi
call fcn.00402080
push edi
call fcn.00432e04
mov ebx, dword [ebp + 0x20]
add esp, 4
push 0xffffffffffffffff
xor edi, edi
push edi
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
call fcn.00401f30
push 1
push edi
push 0x44d69c
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], edi
call fcn.004042f0
push edi
push 0x44d690
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
call fcn.00402080
push 1
push edi
push 0x44d69c
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 1
call fcn.004042f0
test eax, eax
jne 0x406b2a
test ebx, ebx
je 0x406b32
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
add eax, 1
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004017f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00401f30
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
push 0
push 0x44d690
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.00402080
test esi, esi
jge 0x40698d
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401f30
push 0
push 0x44d690
lea ecx, [esp + 0x2c]
call fcn.00402080
jmp 0x406afb
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
mov edi, dword [esp + 0x28]
mov ebx, eax
jb 0x406ba6
test edi, edi
mov esi, edi
je 0x4069dc
cmp edx, 0x10
mov eax, edi
jae 0x4069c3
lea eax, [esp + 0x28]
cmp eax, esi
ja 0x4069dc
cmp edx, 0x10
mov eax, edi
jae 0x4069d2
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
add eax, ecx
cmp esi, eax
jbe 0x4069e9
call fcn.00431767
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x24]
cmp eax, 0xfffffffe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
je 0x406a2e
cmp edx, 0x10
mov ecx, edi
jae 0x406a05
lea ecx, [esp + 0x28]
mov ebp, dword [esp + 0x38]
lea eax, [esi + ebx]
add ecx, ebp
cmp eax, ecx
ja 0x406a21
cmp edx, 0x10
mov ecx, edi
jae 0x406a1d
lea ecx, [esp + 0x28]
cmp eax, ecx
jae 0x406a2e
call fcn.00431767
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
cmp edx, 0x10
lea ebp, [esi + ebx]
jb 0x406baf
test edi, edi
mov ebx, edi
je 0x406a64
cmp edx, 0x10
mov eax, edi
jae 0x406a4b
lea eax, [esp + 0x28]
cmp eax, ebx
ja 0x406a64
cmp edx, 0x10
mov eax, edi
jae 0x406a5a
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
add eax, ecx
cmp ebx, eax
jbe 0x406a69
call fcn.00431767
mov edx, dword [esp + 0x58]
cmp edx, 0x10
mov eax, dword [esp + 0x44]
lea edi, [esp + 0x24]
jb 0x406bb8
test eax, eax
mov esi, eax
je 0x406aa6
cmp edx, 0x10
mov ecx, eax
jae 0x406a8f
lea ecx, [esp + 0x44]
cmp ecx, esi
ja 0x406aa6
cmp edx, 0x10
jae 0x406a9c
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x54]
add eax, edx
cmp esi, eax
jbe 0x406aab
call fcn.00431767
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push ebp
push edx
push ebx
push edi
lea eax, [esp + 0x54]
push esi
push eax
push esi
push eax
mov ecx, eax
call fcn.00405210
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004017f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00401f30
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
push ebx
mov ecx, ebp
mov edi, ebx
call fcn.004052e0
push 1
push 0
mov ebx, eax
push 0x44d69c
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
call fcn.004042f0
test eax, eax
je 0x406907
test ebx, ebx
jne 0x406e8e
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
test eax, eax
push 0x48
jge 0x406bc1
xor bl, bl
call fcn.00415b27
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x68], 2
je 0x406bf5
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x90]
push ecx
push edx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call fcn.00405f50
jmp 0x406bf7
lea esi, [esp + 0x28]
jmp 0x4069b8
lea ebx, [esp + 0x28]
jmp 0x406a40
lea esi, [esp + 0x44]
jmp 0x406a84
mov bl, 1
call fcn.00415b27
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x68], 3
je 0x406bf5
push edi
push 1
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x60]
push edx
mov ecx, eax
call fcn.00405f50
jmp 0x406bf7
xor eax, eax
mov esi, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0x3c]
mov byte [esp + 0x6c], 1
call fcn.00406480
mov edi, esi
test bl, bl
mov ebx, dword [esp + 0x18]
mov dword [eax], esi
mov dword [esp + 0x14], edi
jne 0x406c35
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.004042b0
mov eax, dword [esi + 0x38]
push eax
mov ecx, ebx
call fcn.00404c40
cmp byte [esi + 0x34], 0
jne 0x406c3f
add dword [ebx + 0x4c], 1
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x406c54
push esi
push ebx
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
add eax, 1
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004017f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00401f30
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
push 0
push 0x44d690
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.00402080
test esi, esi
lea ecx, [esp + 0x24]
jge 0x406cd2
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.00401f30
push 0
push 0x44d690
lea ecx, [esp + 0x2c]
call fcn.00402080
jmp 0x406e38
push 1
push 0
push 0x44d69c
call fcn.004042f0
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
mov edi, dword [esp + 0x28]
mov ebx, eax
jb 0x406e73
test edi, edi
mov esi, edi
je 0x406d1d
cmp edx, 0x10
mov eax, edi
jae 0x406d04
lea eax, [esp + 0x28]
cmp eax, esi
ja 0x406d1d
cmp edx, 0x10
mov eax, edi
jae 0x406d13
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
add eax, ecx
cmp esi, eax
jbe 0x406d2a
call fcn.00431767
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x24]
cmp eax, 0xfffffffe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
je 0x406d6f
cmp edx, 0x10
mov ecx, edi
jae 0x406d46
lea ecx, [esp + 0x28]
mov ebp, dword [esp + 0x38]
lea eax, [esi + ebx]
add ecx, ebp
cmp eax, ecx
ja 0x406d62
cmp edx, 0x10
mov ecx, edi
jae 0x406d5e
lea ecx, [esp + 0x28]
cmp eax, ecx
jae 0x406d6f
call fcn.00431767
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
cmp edx, 0x10
lea ebp, [esi + ebx]
jb 0x406e7c
test edi, edi
mov ebx, edi
je 0x406da5
cmp edx, 0x10
mov eax, edi
jae 0x406d8c
lea eax, [esp + 0x28]
cmp eax, ebx
ja 0x406da5
cmp edx, 0x10
mov eax, edi
jae 0x406d9b
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
add eax, ecx
cmp ebx, eax
jbe 0x406daa
call fcn.00431767
mov edx, dword [esp + 0x58]
cmp edx, 0x10
mov eax, dword [esp + 0x44]
lea edi, [esp + 0x24]
jb 0x406e85
test eax, eax
mov esi, eax
je 0x406de7
cmp edx, 0x10
mov ecx, eax
jae 0x406dd0
lea ecx, [esp + 0x44]
cmp ecx, esi
ja 0x406de7
cmp edx, 0x10
jae 0x406ddd
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x54]
add eax, edx
cmp esi, eax
jbe 0x406dec
call fcn.00431767
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push ebp
push edx
push ebx
push edi
lea eax, [esp + 0x54]
push esi
push eax
push esi
push eax
mov ecx, eax
call fcn.00405210
push 1
push 0
push 0x44d69c
lea ecx, [esp + 0x30]
call fcn.004042f0
push eax
push 0
lea ecx, [esp + 0x2c]
call fcn.004017f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00401f30
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x406e47
lea eax, [esp + 0x44]
push 0
push 0x44d690
push eax
call fcn.004012c0
add esp, 0xc
test eax, eax
jne 0x406b32
cmp dword [esp + 0x54], eax
setne al
test eax, eax
jne 0x406b32
jmp 0x406ef8
lea esi, [esp + 0x28]
jmp 0x406cf9
lea ebx, [esp + 0x28]
jmp 0x406d81
lea esi, [esp + 0x44]
jmp 0x406dc5
cmp byte [ebx + 0x34], 0
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], ecx
jne 0x406ee3
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, ecx
sub eax, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x7c]
push eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x28], edx
mov edx, dword [esp + 0x84]
mov dword [ebx + 0x20], ecx
push eax
mov ecx, ebp
mov dword [ebx + 0x24], edx
call fcn.004042b0
mov ecx, dword [ebx + 0x38]
push ecx
mov ecx, ebp
call fcn.00404c40
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x406ef8
push ebx
push ebp
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x406f10
mov edx, dword [esp + 0x44]
push edx
call fcn.00415b52
add esp, 4
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x406f38
mov eax, dword [esp + 0x28]
push eax
call fcn.00415b52
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00431e6f
add esp, 0x58
ret 0x1c