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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6831a0
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov edx, dword [esp + 0x88]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xc4]
cmp edx, eax
jbe 0x405a61
mov edx, eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0xbc], edx
test eax, 0x80000000
je 0x405f6d
mov ecx, dword [ebp + 0xb0]
lea esi, [ebp + 0xd8]
push esi
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [esi + 8]
xor edi, edi
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
je 0x405dc5
cmp dword [ebp + 0xb0], edi
je 0x405dc5
mov eax, dword [ebp + 0xbc]
mov dword [esp + 0x18], edi
cmp eax, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
jbe 0x405dbb
mov eax, dword [ebp + 0xdc]
lea ecx, [ebp + 0xd8]
test eax, eax
jne 0x405adf
mov ebx, dword [esp + 0x14]
mov edx, 0x6a3560
jmp 0x405ae6
mov ebx, dword [esp + 0x14]
lea edx, [eax + ebx]
test byte [edx], 0x80
je 0x405baf
push 2
lea edx, [esp + 0x4c]
push ebx
push edx
call fcn.00408170
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x90], 0
test esi, esi
jne 0x405b14
mov esi, 0x6a3560
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], al
call fcn.004031c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x60]
call fcn.004083a0
mov eax, dword [ebp + 0xb0]
mov byte [esp + 0x90], 1
mov ecx, dword [eax + 0xb0]
test ecx, ecx
je 0x405b67
lea edx, [esp + 0x20]
lea eax, [esp + 0x58]
push edx
push 2
push eax
call fcn.0042bcd0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x94], 0
call fcn.004031c0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, eax
add ebx, 2
add ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x90], 0xffffffff
push 1
lea ecx, [esp + 0x4c]
jmp 0x405da4
test eax, eax
jne 0x405bba
mov eax, 0x6a3560
jmp 0x405bbc
add eax, ebx
mov dl, byte [eax]
push 1
cmp dl, 0xa
push ebx
jne 0x405cc2
lea edx, [esp + 0x70]
push edx
call fcn.00408170
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x90], 2
test esi, esi
jne 0x405bec
mov esi, 0x6a3560
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.004031c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x3c]
push ebx
call fcn.00403350
test al, al
je 0x405c3b
mov edi, dword [esp + 0x3c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.00403330
mov eax, dword [ebp + 0xb0]
mov byte [esp + 0x90], 3
mov ecx, dword [eax + 0xb0]
test ecx, ecx
je 0x405c64
lea eax, [esp + 0x20]
lea edx, [esp + 0x38]
push eax
push 1
push edx
call fcn.0042bcd0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 2
call fcn.004031c0
mov eax, dword [ebp + 0x88]
mov esi, dword [ebp + 0x80]
mov ecx, dword [esp + 0x1c]
sub eax, esi
cmp ecx, eax
jle 0x405c8f
sub ecx, eax
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x14]
add edx, eax
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x90], 0xffffffff
push 1
lea ecx, [esp + 0x6c]
jmp 0x405da4
lea eax, [esp + 0x80]
push eax
call fcn.00408170
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x90], 4
test esi, esi
jne 0x405ce7
mov esi, 0x6a3560
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
call fcn.004031c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x2c]
push ebx
call fcn.00403350
test al, al
je 0x405d36
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.00403330
mov eax, dword [ebp + 0xb0]
mov byte [esp + 0x90], 5
mov ecx, dword [eax + 0xb0]
test ecx, ecx
je 0x405d5f
lea eax, [esp + 0x20]
lea edx, [esp + 0x28]
push eax
push 1
push edx
call fcn.0042bcd0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 4
call fcn.004031c0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esi, eax
inc edx
add ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x90], 0xffffffff
push 1
lea ecx, [esp + 0x7c]
call fcn.004031c0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xbc]
cmp eax, ecx
jb 0x405ac4
mov ecx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x20], ecx
mov esi, dword [ebp + 0x88]
mov edx, dword [ebp + 0x80]
sub esi, edx
cmp ecx, esi
jl 0x405efe
mov eax, ecx
cdq
idiv esi
mov ebx, eax
mov eax, ecx
cdq
idiv esi
mov ecx, dword [ebp + 0xb0]
mov eax, dword [ebp + 0x84]
mov ecx, dword [ecx + 0xe8]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
lea edi, [ecx + edx]
mov edx, dword [ebp + 0x8c]
mov esi, edi
sub eax, edx
imul esi, ebx
mov edx, dword [esp + 0x24]
add eax, ecx
add eax, esi
add eax, edx
cdq
idiv edi
mov edi, eax
mov eax, dword [ebp + 0xec]
cmp edi, eax
jle 0x405e51
push edi
mov ecx, ebp
call fcn.00406270
mov eax, dword [ebp + 0xb0]
mov ebx, dword [esp + 0x24]
mov ecx, dword [eax + 0xe8]
mov dword [ebp + 0xec], edi
add ecx, ebx
imul ecx, edi
sub esi, ecx
jmp 0x405eb3
jge 0x405e90
mov edx, dword [ebp + 0xbc]
mov ecx, dword [ebp + 0xe8]
cmp edx, ecx
jae 0x405e90
test ebx, ebx
jge 0x405e69
xor ebx, ebx
push ebx
mov ecx, ebp
call fcn.00406270
mov eax, dword [ebp + 0xb0]
mov edi, dword [esp + 0x24]
mov ecx, dword [eax + 0xe8]
mov dword [ebp + 0xec], ebx
add ecx, edi
imul ecx, ebx
sub esi, ecx
jmp 0x405eb3
push eax
mov ecx, ebp
call fcn.00406270
mov eax, dword [ebp + 0xb0]
mov edi, dword [esp + 0x24]
mov edx, dword [eax + 0xe8]
add edx, edi
imul edx, dword [ebp + 0xec]
sub esi, edx
mov ecx, dword [eax + 0xb8]
mov eax, dword [eax + 0xb4]
mov edx, dword [esp + 0x1c]
add ecx, esi
add eax, edx
mov edx, dword [0x6dfe50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x1c], ecx
fst dword [0x6dfe5c]
fild dword [esp + 0x18]
fstp dword [0x6dfe60]
fstp dword [0x6dfe70]
fild dword [esp + 0x1c]
jmp 0x40623b
mov eax, dword [ebp + 0xb0]
mov edx, dword [eax + 0xb8]
mov eax, dword [eax + 0xb4]
add eax, ecx
mov ecx, dword [0x6dfe50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x1c], edx
fst dword [0x6dfe5c]
fild dword [esp + 0x18]
fstp dword [0x6dfe60]
fstp dword [0x6dfe70]
fild dword [esp + 0x1c]
fstp dword [0x6dfe74]
call fcn.0042eba0
fstp dword [0x6dfe54]
mov byte [0x6dfe58], 1
mov dword [ebp + 0xec], edi
mov dword [ebp + 0xe8], edi
jmp 0x406253
mov ecx, dword [ebp + 0xb0]
xor esi, esi
xor eax, eax
mov dword [esp + 0x24], esi
lea edi, [ecx + 0xbc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
cmp dword [edi + 8], esi
je 0x4061de
cmp ecx, esi
je 0x4061de
xor ebx, ebx
cmp edx, esi
mov dword [esp + 0x1c], esi
jbe 0x4061d6
jmp 0x405fae
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x405fbc
mov eax, 0x6a3560
jmp 0x405fbe
add eax, ebx
test byte [eax], 0x80
je 0x4060cc
push 2
lea edx, [esp + 0x4c]
push ebx
push edx
mov ecx, edi
call fcn.00408170
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x90], 6
cmp edx, esi
jne 0x405fee
mov edx, 0x6a3560
mov al, byte [esp + 0x13]
mov edi, edx
mov byte [esp + 0x28], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.004083a0
mov eax, dword [ebp + 0xb0]
mov byte [esp + 0x90], 7
mov ecx, dword [eax + 0xb0]
cmp ecx, esi
je 0x406042
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
push 2
push eax
call fcn.0042bcd0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x90], 6
cmp eax, esi
je 0x40606f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x406066
cmp al, 0xff
je 0x406066
dec al
mov byte [ecx], al
jmp 0x40606f
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x4c]
add ebx, 2
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x90], 0xffffffff
je 0x4060bb
mov al, byte [ecx - 1]
test al, al
je 0x4060b1
cmp al, 0xff
je 0x4060b1
dec al
mov byte [ecx - 1], al
jmp 0x4060bb
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
jmp 0x4061ca
push 1
lea edx, [esp + 0x5c]
push ebx
push edx
mov ecx, edi
call fcn.00408170
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x90], 8
cmp edx, esi
jne 0x4060f3
mov edx, 0x6a3560
mov al, byte [esp + 0x13]
mov edi, edx
mov byte [esp + 0x38], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.004083a0
mov eax, dword [ebp + 0xb0]
mov byte [esp + 0x90], 9
mov ecx, dword [eax + 0xb0]
cmp ecx, esi
je 0x406147
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push edx
push 1
push eax
call fcn.0042bcd0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x90], 8
cmp eax, esi
je 0x406174
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40616b
cmp al, 0xff
je 0x40616b
dec al
mov byte [ecx], al
jmp 0x406174
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x5c]
inc ebx
cmp ecx, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x90], 0xffffffff
je 0x4061be
mov al, byte [ecx - 1]
test al, al
je 0x4061b4
cmp al, 0xff
je 0x4061b4
dec al
mov byte [ecx - 1], al
jmp 0x4061be
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
cmp ebx, dword [ebp + 0xbc]
jb 0x405faa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x88]
mov esi, dword [ebp + 0x80]
sub ecx, esi
cmp eax, ecx
jle 0x4061f6
mov eax, ecx
mov dword [esp + 0x20], eax
mov ebp, dword [ebp + 0xb0]
mov edx, dword [ebp + 0xb4]
mov ecx, dword [ebp + 0xb8]
add edx, eax
mov eax, dword [0x6dfe50]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
fst dword [0x6dfe5c]
fild dword [esp + 0x18]
fstp dword [0x6dfe60]
fstp dword [0x6dfe70]
fild dword [esp + 0x1c]
fstp dword [0x6dfe74]
call fcn.0042eba0
fstp dword [0x6dfe54]
mov byte [0x6dfe58], 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 4