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

Disassembly:
push 0xffffffffffffffff
push 0x421b10
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4295c0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4295c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
call fcn.00402450
push eax
mov dword [esp + 0x64], 0
call fcn.00405b00
mov esi, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], 0xffffffff
test esi, esi
je 0x40702a
push 0
lea ecx, [esp + 0x18]
call fcn.0040b652
mov eax, dword [esi + 4]
test eax, eax
je 0x40700a
cmp eax, 0xffffffff
jae 0x40700a
dec eax
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
neg edi
sbb edi, edi
lea ecx, [esp + 0x14]
not edi
call fcn.0040b67a
and edi, esi
je 0x40702a
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
call fcn.00404630
mov al, byte [ebp]
mov ecx, 1
mov dword [esp + 0x60], ecx
cmp al, 0x2b
je 0x40706f
cmp al, 0x2d
je 0x40706f
cmp al, 0x30
jne 0x407065
mov al, byte [ebp + 1]
cmp al, 0x78
je 0x40705b
cmp al, 0x58
jne 0x407065
mov dword [esp + 0x14], 2
jmp 0x407073
mov dword [esp + 0x14], 0
jmp 0x407073
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, edx
cmp ecx, 0x10
jae 0x407086
lea eax, [esp + 0x38]
cmp byte [eax], 0x7f
je 0x4070fe
mov eax, edx
cmp ecx, 0x10
jae 0x407096
lea eax, [esp + 0x38]
cmp byte [eax], 0
jle 0x4070fe
cmp ecx, 0x10
jb 0x4070a6
mov dword [esp + 0x24], edx
jmp 0x4070ae
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
mov al, byte [edx]
mov esi, ebx
cmp al, 0x7f
je 0x4070fe
test al, al
jle 0x4070fe
mov ecx, esi
sub ecx, dword [esp + 0x14]
movsx eax, al
cmp eax, ecx
jae 0x4070fe
sub esi, eax
mov eax, ebx
sub eax, esi
inc eax
push eax
lea edi, [esi + ebp]
push edi
push eax
lea eax, [esi + ebp + 1]
push eax
call fcn.0040ecb6
mov eax, dword [esp + 0x34]
add esp, 0x10
mov byte [edi], 0
inc ebx
cmp byte [eax + 1], 0
jle 0x4070f8
inc eax
mov dword [esp + 0x24], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x4070ba
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x20]
mov eax, ecx
cmp dword [eax + 0x24], 0
jl 0x40711b
jg 0x407113
test edi, edi
je 0x40711b
cmp edi, ebx
jbe 0x40711b
sub edi, ebx
jmp 0x40711d
xor edi, edi
mov eax, dword [eax + 0x14]
mov esi, dword [esp + 0x68]
and eax, 0x1c0
cmp eax, 0x40
je 0x4071cf
cmp eax, 0x100
je 0x407169
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edi
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call fcn.004036b0
mov ecx, dword [eax]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x74], edx
jmp 0x4071cd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push eax
push ebp
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00403890
mov ecx, dword [eax]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 4]
push edi
add ebp, ecx
sub ebx, ecx
mov ecx, dword [esp + 0x98]
push ecx
mov dword [esp + 0x94], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.004036b0
mov edx, dword [eax]
mov dword [esp + 0xa0], edx
mov eax, dword [eax + 4]
add esp, 0x30
mov dword [esp + 0x74], eax
xor edi, edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov edx, dword [esp + 0x74]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
push ecx
push ebx
push ebp
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00403900
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x90], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x9c]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0xa8], eax
call fcn.004036b0
add esp, 0x34
cmp dword [esp + 0x4c], 0x10
jb 0x407246
mov eax, dword [esp + 0x38]
push eax
call fcn.0040ca29
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0040d639
add esp, 0x50
ret