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

Disassembly:
push 0xffffffffffffffff
push 0x421ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4295c0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4295c0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0xa4]
mov edx, dword [esp + 0xb4]
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], eax
call fcn.00402450
push eax
mov dword [esp + 0x90], 0
call fcn.00405b00
mov ebp, eax
mov eax, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x8c], 0xffffffff
test eax, eax
je 0x406a0a
mov esi, eax
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], esi
call fcn.0040b652
mov eax, dword [esi + 4]
test eax, eax
je 0x4069e4
cmp eax, 0xffffffff
jae 0x4069e4
dec eax
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x24]
not esi
call fcn.0040b67a
and esi, dword [esp + 0x30]
je 0x406a06
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebp
call fcn.00404630
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
mov dword [esp + 0x8c], 1
call eax
xor ecx, ecx
mov byte [esp + 0x30], al
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ecx
mov byte [esp + 0x48], cl
mov al, byte [edi]
mov byte [esp + 0x8c], 2
cmp al, 0x2b
je 0x406a57
mov dword [esp + 0x24], ecx
cmp al, 0x2d
jne 0x406a5f
mov dword [esp + 0x24], 1
call fcn.0040dcba
mov ecx, dword [eax]
mov dl, byte [ecx]
push ebx
push 0x65
push edi
mov byte [esp + 0x2c], dl
mov word [esp + 0x2d], 0x65
call fcn.0040e2f0
mov ebp, eax
movsx eax, byte [esp + 0x2c]
push ebx
push eax
push edi
call fcn.0040e2f0
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406a9a
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
mov eax, edx
cmp ecx, 0x10
jae 0x406aad
lea eax, [esp + 0x64]
cmp byte [eax], 0x7f
je 0x406bec
mov eax, edx
cmp ecx, 0x10
jae 0x406ac1
lea eax, [esp + 0x64]
cmp byte [eax], 0
jle 0x406bec
push ebx
push edi
lea ecx, [esp + 0x50]
call fcn.004051c0
test ebp, ebp
jne 0x406aef
mov ecx, dword [esp + 0x18]
push 0x30
push ecx
lea ecx, [esp + 0x50]
call fcn.00404c40
mov esi, dword [esp + 0x14]
jmp 0x406b1e
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x406b0b
mov edx, dword [esp + 0x1c]
push 0x30
push edx
lea ecx, [esp + 0x50]
call fcn.00404c40
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x18]
push 0x30
push eax
sub ebp, edi
push ebp
lea ecx, [esp + 0x54]
call fcn.00405080
push 0x30
test esi, esi
jne 0x406b34
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x50]
call fcn.00404c40
jmp 0x406b61
mov edx, dword [esp + 0x40]
sub esi, edi
push edx
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x54]
call fcn.00405080
mov ecx, dword [esp + 0x1c]
push 0x30
push ecx
push esi
lea ecx, [esp + 0x54]
call fcn.00405080
mov dword [esp + 0x3c], 0
mov edi, dword [esp + 0x64]
mov ebx, 0x10
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x78], ebx
jae 0x406b7c
lea edi, [esp + 0x64]
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebx
jae 0x406b8a
lea eax, [esp + 0x48]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0040ec70
mov esi, eax
mov al, byte [edi]
add esp, 8
cmp al, 0x7f
je 0x406bce
test al, al
jle 0x406bce
mov ecx, esi
sub ecx, dword [esp + 0x24]
movsx eax, al
cmp eax, ecx
jae 0x406bce
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x54]
call fcn.00405080
cmp byte [edi + 1], 0
jle 0x406bc8
inc edi
mov al, byte [edi]
cmp al, 0x7f
jne 0x406ba0
mov edi, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebx
jae 0x406bdc
lea edi, [esp + 0x48]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
lea eax, [ebx + edx]
add eax, dword [esp + 0x3c]
add eax, dword [esp + 0x1c]
cmp dword [esi + 0x24], 0
jl 0x406c16
jg 0x406c0a
test ecx, ecx
je 0x406c16
cmp ecx, eax
jbe 0x406c16
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x406c1e
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x14]
mov esi, dword [esp + 0x94]
and eax, 0x1c0
cmp eax, 0x40
je 0x406cc0
cmp eax, 0x100
jne 0x406c7a
cmp dword [esp + 0x24], 0
jbe 0x406c7a
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
push 1
push edi
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00403890
mov ecx, dword [eax]
mov dword [esp + 0xb4], ecx
mov edx, dword [eax + 4]
add esp, 0x18
inc edi
mov dword [esp + 0xa0], edx
dec ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.004036b0
mov edx, dword [eax]
mov dword [esp + 0xb4], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xb8], eax
add esp, 0x18
movsx ecx, byte [esp + 0x20]
push ebx
push ecx
push edi
call fcn.0040e2f0
add esp, 0xc
test eax, eax
je 0x406dbb
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0xa0]
sub eax, edi
push edx
mov edx, dword [esp + 0xa0]
lea ebp, [eax + 1]
lea eax, [ebp - 1]
push eax
push edi
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00403900
mov ecx, dword [eax]
mov dword [esp + 0xb8], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0xc0], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 0x30
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
call fcn.004036b0
mov edx, dword [eax]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xd0], edx
mov eax, dword [eax + 4]
mov dword [esp + 0xd4], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 0x34
call eax
mov edx, dword [esp + 0xa0]
push 1
mov byte [esp + 0x38], al
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.004036b0
mov edx, dword [eax]
mov dword [esp + 0xb4], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x54]
push edx
mov dword [esp + 0xbc], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.004036b0
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
add esp, 0x30
add edi, ebp
mov dword [esp + 0xa0], edx
sub ebx, ebp
push ebx
push 0x65
push edi
call fcn.0040e2f0
add esp, 0xc
test eax, eax
je 0x406e86
mov edx, dword [esp + 0xa0]
sub eax, edi
lea ebp, [eax + 1]
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0xa0]
lea ecx, [ebp - 1]
push ecx
push edi
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.00403900
mov edx, dword [eax]
mov dword [esp + 0xb8], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0xc0], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x60]
push eax
push esi
call fcn.004036b0
mov ecx, dword [eax]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [eax + 4]
add esp, 0x34
test byte [ecx + 0x14], 4
mov dword [esp + 0xa0], edx
mov dword [esp + 0x18], 0
mov ecx, 0x423474
jne 0x406e57
mov ecx, 0x423470
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.00403890
mov edx, dword [eax]
mov dword [esp + 0xb4], edx
mov eax, dword [eax + 4]
add esp, 0x18
add edi, ebp
mov dword [esp + 0xa0], eax
sub ebx, ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
push ecx
push ebx
push edi
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.00403900
mov edx, dword [eax]
mov dword [esp + 0xb8], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x34]
push edx
mov dword [esp + 0xc0], ecx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push 0x30
push ecx
push edx
lea eax, [esp + 0x60]
push eax
push esi
call fcn.004036b0
mov ecx, dword [eax]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x78]
mov dword [esp + 0xd0], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0xe0]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0xec], eax
call fcn.004036b0
mov esi, 0x10
add esp, 0x4c
cmp dword [esp + 0x5c], esi
jb 0x406f28
mov eax, dword [esp + 0x48]
push eax
call fcn.0040ca29
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x406f4b
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040ca29
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0040d639
add esp, 0x7c
ret