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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0xec
mov eax, dword [edx]
mov edx, dword [esp + 0x100]
mov dword [esp + 0x60], 0
mov dword [esp + 0x30], eax
lea eax, [ecx + ecx*2]
lea eax, [eax*4 + 0x18]
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], eax
test edx, edx
je 0x60618d
mov eax, dword [esp + 0x100]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
mov ecx, 0x18
lea edi, [esp + 0x80]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [eax + 0x30]
mov dword [esp + 0x70], 0
mov dword [esp + 0x44], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
lea eax, [ebx + ebx*2]
lea ecx, [ebx + 1]
mov eax, dword [edi + eax*4 + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x606209
mov eax, dword [ebp + 0x24]
lea edi, [ebp + 0x24]
test eax, eax
jne 0x6061f7
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x10], 0x7cf
jle 0x6068d1
mov dword [ebp + 0x24], 0xd
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov esi, edi
add eax, edi
mov dword [esp + 0x2c], eax
lea eax, [ecx + ecx*2]
shl eax, 2
lea edi, [edi + eax + 0x18]
add eax, esi
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x38], edi
lea edx, [edx + edx*2]
lea esi, [eax + edx*4 - 0xc]
mov eax, ebp
lea edx, [esp + 0x80]
mov ecx, dword [esi]
mov dword [esp + 0x40], esi
call fcn.005ea231
mov eax, dword [esi + 8]
mov dword [esp + 0xd8], 0
mov dword [esp + 0x48], eax
add eax, 1
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
xor esi, esi
cmp dword [eax + 4], 1
jne 0x606280
mov esi, dword [esp + 0x30]
lea eax, [ebx + 2]
cmp dword [esi + 0x14], eax
sete al
movzx eax, al
mov esi, eax
lea eax, [esp + 0x60]
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0x30]
mov ecx, 0x20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.006046a1
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x606481
mov edi, dword [esp + 0x60]
lea eax, [ebp + 0x24]
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], eax
cmp byte [edi + 0x10], 0
mov dword [esp + 0x54], esi
jne 0x606481
mov eax, dword [edi + 0x48]
movzx ebx, word [eax + 4]
lea eax, [ebx + ebx*2]
shl eax, 5
add eax, edi
mov ecx, dword [eax + 0x98]
mov esi, dword [eax + 0x94]
cmp dword [esp + 0x6c], ecx
je 0x606759
mov eax, dword [esp + 0x100]
test eax, eax
je 0x606328
mov eax, dword [esp + 0x34]
cmp dword [esp + 0xbc], eax
jg 0x606481
mov dword [esp], esi
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x68]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], 0
call fcn.0058ff11
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x58]
lea eax, [ebx + ebx*2]
shl eax, 5
add eax, edi
mov edx, dword [eax + 0xa8]
test edx, edx
jne 0x60637b
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x606450
cmp byte [eax + 0xac], 0
je 0x606450
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0x48]
or edx, eax
je 0x606a91
test eax, eax
jne 0x60642d
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x48]
movzx eax, word [eax + 4]
lea eax, [eax + eax*2]
shl eax, 5
lea edx, [edx + eax + 0xa0]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x5c], edx
mov edx, dword [ebp]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x90]
cmp eax, dword [edx + 0x4c]
jge 0x606b4e
cmp byte [esp + 0xb9], 0
jne 0x606b16
cmp word [esp + 0xb8], 0
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
je 0x606ab2
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], edx
lea edx, [esp + 0x8c]
call fcn.005907b1
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xb0], eax
xor eax, eax
mov dword [esp + 0xb4], edx
mov word [esp + 0xb8], ax
lea ebx, [ebx + ebx*2]
shl ebx, 5
cmp dword [esp + 0x44], 1
lea esi, [edi + ebx]
movzx eax, byte [esi + 0xac]
jne 0x6069a1
test al, al
jne 0x606ac5
mov dword [esp], 0
mov edx, dword [esp + 0x60]
mov eax, ebp
xor ecx, ecx
mov dword [esp + 4], 0
call fcn.00600931
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x606481
mov edi, dword [esp + 0x60]
cmp byte [edi + 0x10], 0
je 0x6062e7
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x80]
lea ecx, [eax + 8]
mov eax, ebp
call fcn.005f3d81
mov eax, dword [ebp + 0x24]
mov edi, eax
test eax, eax
jne 0x6065b1
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x10], 0
mov dword [esp + 0x34], eax
jne 0x6065b1
mov eax, dword [eax + 0x30]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
test eax, eax
jle 0x6068aa
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ebp
mov esi, edi
lea ebx, [eax + 0x50]
lea eax, [esp + 0x74]
mov dword [esp + 0x40], eax
lea eax, [ebp + 0x24]
mov dword [esp + 0x50], eax
jmp 0x60658f
mov eax, dword [eax]
mov edi, dword [ebx + 0x28]
mov dword [esp + 0x64], 0
mov edx, eax
mov eax, 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x24]
shl edx, 5
mov dword [esp + 0x3c], edx
cdq
mov edi, eax
add edi, dword [esp + 0x38]
mov ebp, edx
adc ebp, dword [esp + 0x3c]
mov edx, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x30]
mov eax, ebp
call fcn.005ff641
mov edi, eax
test eax, eax
je 0x60656d
mov eax, dword [esp + 0x44]
cmp eax, dword [edi + 8]
jle 0x606791
mov dword [ebp + 0x24], 0x10b
mov dword [esp], edi
call fcn.00547771
mov eax, dword [esp + 0x34]
add esi, 1
add ebx, 0x60
cmp esi, dword [eax + 0x30]
jge 0x6068b9
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x24]
test edx, edx
jne 0x6068b9
mov eax, dword [ebx]
test eax, eax
je 0x60656d
mov ebp, dword [ebx + 0xc]
test ebp, ebp
jne 0x606501
mov dword [eax + 8], 0
mov dword [eax + 4], 0
jmp 0x60656d
lea eax, [ebp + 0x38]
xor ebx, ebx
mov dword [esp + 0x34], eax
lea eax, [ebp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x6065de
jmp 0x60666f
add ebx, 1
cmp dword [esp + 0x28], ebx
je 0x60666f
mov edi, dword [esp + 0x2c]
lea eax, [ebx + ebx*2]
shl eax, 2
add eax, dword [edi + 8]
mov eax, dword [eax]
mov edi, eax
mov ecx, eax
mov esi, eax
add eax, 1
shl ecx, 5
mov edx, eax
mov eax, 0
sar edi, 0x1f
shl edx, 5
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp], eax
mov eax, ebp
mov dword [esp + 4], edx
xor edx, edx
call fcn.005f3e51
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x606721
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jne 0x6065d1
mov dword [esp + 8], esi
add ebx, 1
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov eax, dword [ebp + 0x38]
mov dword [esp], eax
call fcn.00563e91
mov eax, dword [ebp + 0x38]
mov dword [esp], eax
call fcn.005d1d71
mov eax, dword [ebp + 0x38]
mov dword [esp], eax
call fcn.005aed51
mov dword [ebp + 0x24], eax
cmp dword [esp + 0x28], ebx
jne 0x6065de
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0x28]
je 0x6066a5
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
sub eax, esi
mov edx, dword [ebx + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp], edx
mov dword [esp + 8], eax
lea eax, [esi + esi*2]
lea eax, [edx + eax*4]
mov dword [esp + 4], eax
call fcn.0086e9e9
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
sub eax, ebx
mov dword [esi + 0x10], eax
sub dword [edi + 4], ebx
mov ebx, dword [esp + 0x40]
mov dword [edi], 0
mov edx, dword [ebx + 8]
test edx, edx
jne 0x6066df
mov ebx, dword [esp + 0x38]
sub eax, 1
sub dword [ebx + 4], 1
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x6066ec
call fcn.00557931
lea eax, [esp + 0x68]
call fcn.00548b21
mov eax, dword [esp + 0x100]
test eax, eax
je 0x6061f7
mov ebx, dword [esp + 0x100]
mov eax, dword [esp + 0xbc]
sub dword [ebx], eax
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp], 0x9944c4
mov dword [esp + 4], eax
call fcn.00592b51
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [ebp]
call fcn.005ea1c1
jmp 0x606627
test ecx, ecx
je 0x606350
mov eax, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 0x58], ecx
call fcn.0086e9f9
mov ecx, dword [esp + 0x58]
test eax, eax
je 0x606350
jmp 0x60630c
mov dword [esp + 0x78], 0
mov eax, dword [edi + 4]
cmp eax, dword [esp + 0x7c]
ja 0x606a71
lea eax, [esp + 0x64]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov ecx, 4
mov dword [esp], eax
mov eax, ebp
call fcn.0058ff11
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x40]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov eax, ebp
call fcn.005907b1
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0x40]
mov dword [esp], eax
mov eax, ebp
call fcn.0058ff11
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
sub ecx, eax
add eax, dword [edi]
mov dword [esp], eax
mov eax, ebp
call fcn.0058ff11
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x606822
movzx eax, word [esp + 0x78]
mov edx, dword [esp + 0x74]
rol ax, 8
mov word [edx + 2], ax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov dword [esp], 4
mov dword [esp + 4], 0
call fcn.005907b1
mov eax, dword [ebx + 0x24]
cmp dword [ebx + 8], eax
je 0x606a11
mov edx, dword [ebx]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
add edx, 1
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x4c]
adc ecx, 0
mov dword [esp], eax
mov eax, ebp
mov dword [esp + 4], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x3c]
call fcn.005f3e51
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov eax, ebp
call fcn.005f2f71
jmp 0x606565
lea eax, [esp + 0x74]
mov dword [esp + 0x40], eax
lea esi, [esi]
mov eax, dword [esp + 0x40]
call fcn.00548b21
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov dword [eax], ebx
jmp 0x6066df
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
call fcn.005579e1
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], eax
sub eax, 1
cmp eax, ebx
je 0x6069e2
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x6061f7
mov esi, dword [esp + 0x30]
mov dword [esp], 0
mov eax, edi
mov dword [esp + 0x40], ecx
mov edx, esi
call fcn.00604441
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x6061f7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edi, esi
lea edx, [esp + 0x80]
add eax, esi
mov dword [esp + 0x2c], eax
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x28]
lea esi, [eax*4]
lea eax, [edi + esi + 0x18]
mov dword [esp + 0x38], eax
mov eax, ebp
call fcn.005ea231
lea eax, [edi + esi]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
lea esi, [edx + edx*2]
add edx, 1
lea esi, [ecx + esi*4]
mov dword [eax + 0x1c], edx
mov dword [esp + 0x40], esi
mov eax, esi
mov dword [esi + 4], 1
mov esi, dword [esp + 0x28]
mov dword [eax], esi
lea eax, [ebx + ebx*2]
add dword [edi + 0x10], 1
mov eax, dword [edi + eax*4 + 0x1c]
mov dword [esp + 0x28], eax
jmp 0x606262
mov edx, dword [esi + 0xa8]
lea eax, [eax + edx*2]
lea edx, [esp + 0x8c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
call fcn.005907b1
mov dword [esp], 0x5def90
lea edx, [edi + ebx + 0x50]
mov eax, ebp
lea ecx, [esp + 0x80]
call fcn.005fff21
jmp 0x606450
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x40], ecx
test eax, eax
jne 0x6061f7
mov eax, edi
mov edx, esi
call fcn.005912b1
mov eax, dword [esi]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
jmp 0x6068ff
mov edx, dword [ebx + 0x30]
mov ecx, dword [edi + 8]
cmp edx, ecx
jge 0x60684a
mov ebp, dword [edi + 4]
cmp dword [ebx + 0x2c], ebp
jg 0x60684a
mov eax, dword [esp + 0x78]
sub edx, ecx
mov ebp, dword [esp + 0x50]
add eax, edx
mov edx, dword [esp + 0x40]
sub eax, 5
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov eax, ebp
call fcn.005907b1
mov eax, dword [ebx + 0x2c]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x40]
sub ecx, eax
add eax, dword [edi]
mov dword [esp], eax
mov eax, ebp
call fcn.0058ff11
mov eax, dword [ebx + 0x24]
jmp 0x60684a
mov dword [esp], eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x7c]
mov eax, dword [esp + 0x50]
call fcn.0058fe51
jmp 0x6067a6
mov dword [esp], esi
mov eax, ebp
lea edx, [esp + 0x80]
call fcn.005f3a61
mov dword [esp + 0x48], 1
mov eax, dword [ebp + 0x24]
jmp 0x60638a
sub eax, dword [esp + 0xb0]
sbb edx, dword [esp + 0xb4]
jmp 0x6063f6
mov ebx, dword [esp + 0x50]
mov dword [esp], 0
lea edx, [esp + 0x8c]
mov dword [esp + 4], 0
mov eax, ebx
call fcn.005907b1
mov eax, dword [esi + 0xa8]
test eax, eax
jle 0x606450
mov dword [esp], 0
lea edx, [esp + 0x8c]
mov eax, ebx
mov dword [esp + 4], 0
call fcn.005907b1
jmp 0x606450
movzx eax, word [esp + 0x90]
mov edx, dword [esp + 0x8c]
rol ax, 8
mov word [edx], ax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, ebp
mov dword [esp + 4], edx
lea edx, [esp + 0x80]
call fcn.005f3141
jmp 0x6063df
lea edx, [esp + 0x80]
mov eax, ebp
call fcn.005f3411
jmp 0x6063d1