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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 8], 0
test dword [esi + 8], 0x80000
je 0x4046c0
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
mov dword [ebp - 4], 1
cmp eax, dword [esi + 0x24]
jbe 0x4046c7
mov dword [ebp - 4], 0
cmp dword [esi], 0
jne 0x4046e7
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x4046e7
mov eax, dword [esi + 0x74]
add eax, ecx
jmp 0x4046ed
lea eax, [esi + 0x39272]
mov cl, byte [esi + 0x38]
mov dword [esi + 0x30], eax
mov dword [ebp - 0x10], eax
add eax, 0x14cbc
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
shr byte [eax], cl
xor eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test dword [esi + 8], 0x1000
je 0x40479e
cmp dword [esi + 0x64], 0
jne 0x40479e
mov ecx, dword [esi + 0x44]
mov eax, 0x78
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x404762
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404754
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404744
mov ecx, dword [esi + 0x44]
mov eax, 1
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x40479e
lea ebx, [ebx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404790
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404780
mov ecx, dword [esi + 0x44]
xor eax, eax
cmp edx, 4
sete al
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 1]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4047de
lea esp, [esp]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4047d0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x4047c0
cmp dword [ebp - 4], 0
mov edx, dword [esi + 0x48]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x44]
mov dword [ebp - 0xc], edx
jne 0x404835
test dword [esi + 8], 0x40000
jne 0x404808
cmp dword [esi + 0x3c], 0x30
jb 0x404808
mov ecx, esi
call fcn.00403d90
jmp 0x40480f
mov ecx, esi
call fcn.00404340
mov ecx, esi
call fcn.00404450
mov edx, dword [esi + 0x3c]
mov dword [ebp - 8], eax
test edx, edx
je 0x40494e
mov ecx, dword [esi + 0x30]
sub ecx, edi
inc ecx
cmp ecx, edx
jb 0x40494e
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
ja 0x40494b
xor eax, eax
mov dword [esi + 0x30], edi
mov ecx, ebx
shl eax, cl
or eax, edx
mov dword [esi + 0x48], eax
lea eax, [ebx + 2]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x40487e
lea ecx, [ecx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404870
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404860
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4048b1
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4048a3
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404893
mov edx, 2
mov ecx, dword [esi + 0x44]
movzx eax, word [esi + 0x3c]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4048ee
lea ecx, [ecx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4048e0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x4048d0
xor dword [esi + 0x3c], 0xffff
dec edx
jne 0x4048b6
cmp dword [esi + 0x3c], edx
jbe 0x40496c
lea ecx, [ecx]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
add eax, edx
and eax, 0x7fff
movzx eax, byte [eax + esi + 0x90]
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x404943
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404935
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404925
inc edx
cmp edx, dword [esi + 0x3c]
jb 0x404900
jmp 0x40496c
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40496c
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebx
call fcn.00404340
mov ecx, esi
call fcn.00404450
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404ab7
mov ecx, dword [esi + 0x44]
cmp eax, 4
jne 0x404a09
test ecx, ecx
je 0x4049b3
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4049a5
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404995
test dword [esi + 8], 0x1000
je 0x404ab7
mov edx, dword [esi + 0x18]
mov edi, 4
mov ecx, dword [esi + 0x44]
mov eax, edx
shr eax, 0x18
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x4049fe
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x4049f0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x4049e0
shl edx, 8
dec edi
jne 0x4049c8
jmp 0x404ab7
xor eax, eax
xor edi, edi
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 3]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x404a3e
lea ecx, [ecx]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404a30
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404a20
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x404a71
xor eax, eax
mov dword [esi + 0x44], 8
shl eax, cl
or dword [esi + 0x48], eax
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404a63
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404a53
mov edx, 2
mov ecx, dword [esi + 0x44]
movzx eax, di
shl eax, cl
or dword [esi + 0x48], eax
lea eax, [ecx + 0x10]
mov dword [esi + 0x44], eax
cmp eax, 8
jb 0x404aae
lea esp, [esp]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x404aa0
mov al, byte [esi + 0x48]
mov byte [ecx], al
inc dword [esi + 0x30]
shr dword [esi + 0x48], 8
add dword [esi + 0x44], 0xfffffff8
cmp dword [esi + 0x44], 8
jae 0x404a90
xor edi, 0xffff
dec edx
jne 0x404a76
push 0x240
lea eax, [esi + 0x8192]
push 0
push eax
call dword [0x410c48]
push 0x40
lea eax, [esi + 0x83d2]
push 0
push eax
call dword [0x410c48]
mov ebx, dword [esi + 0x30]
lea eax, [esi + 0x9273]
inc dword [esi + 0x64]
add esp, 0x18
mov dword [esi + 0x28], eax
lea eax, [esi + 0x9272]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x38], 8
mov dword [esi + 0x3c], 0
sub ebx, eax
je 0x404b9c
cmp dword [esi], 0
je 0x404b50
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push ebx
push eax
mov eax, dword [esi]
call eax
add esp, 0xc
test eax, eax
jne 0x404b9c
pop edi
mov dword [esi + 0x6c], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esi + 0x39272]
cmp eax, edx
jne 0x404b96
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov edi, dword [eax]
mov eax, dword [esi + 0x74]
sub edi, ecx
cmp ebx, edi
cmovb edi, ebx
add eax, ecx
push edi
push edx
push eax
call dword [0x410a7c]
add dword [esi + 0x8c], edi
add esp, 0xc
sub ebx, edi
je 0x404b9c
mov dword [esi + 0x58], edi
mov eax, ebx
pop edi
mov dword [esi + 0x5c], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x8c], ebx
mov eax, dword [esi + 0x5c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret