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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebp, dword [esp + 0xc8]
mov esi, dword [ebp + 0x30]
mov edi, dword [ebp + 0x34]
mov eax, esi
or eax, edi
je 0x460dc0
mov eax, dword [esp + 0xcc]
mov ebx, dword [esp + 0xcc]
mov eax, dword [eax + 0x30]
or eax, dword [ebx + 0x34]
je 0x460dc0
mov ecx, esi
mov ebx, 0xaaaaaaab
add ecx, edi
adc ecx, 0
mov eax, ecx
mul ebx
mov eax, edx
and edx, 0xfffffffe
shr eax, 1
add edx, eax
mov eax, esi
sub ecx, edx
mov edx, edi
sub eax, ecx
sbb edx, 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
imul ecx, edx, 0xaaaaaaab
mov dword [esp + 0x24], edx
imul edx, dword [esp + 0x20], 0xaaaaaaaa
add ecx, edx
mul ebx
add edx, ecx
shrd eax, edx, 2
shr edx, 2
mov ecx, eax
mov ebx, edx
shld ebx, ecx, 1
add ecx, ecx
add ecx, eax
mov eax, esi
adc ebx, edx
mov edx, edi
shld ebx, ecx, 2
shl ecx, 2
sub eax, ecx
sbb edx, ebx
mov dword [esp + 0x40], eax
or eax, edx
mov dword [esp + 0x44], edx
jne 0x460dc0
mov eax, dword [esp + 0xcc]
test byte [eax + 0x10], 4
jne 0x460dc0
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4608d6
cmp eax, 0x484fc0
je 0x460dc0
mov eax, dword [esp + 0xcc]
mov eax, dword [eax + 0x40]
cmp eax, 0x484fc0
jne 0x4608ef
test eax, eax
jne 0x460dc0
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x60], 0
mov eax, dword [eax]
mov dword [esp + 0x58], eax
test eax, eax
je 0x461028
mov ecx, esi
mov ebx, 0xaaaaaaab
add ecx, edi
adc ecx, 0
mov eax, ecx
mul ebx
mov eax, edx
and edx, 0xfffffffe
shr eax, 1
add edx, eax
mov eax, esi
sub ecx, edx
mov edx, edi
sub eax, ecx
sbb edx, 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
imul ecx, edx, 0xaaaaaaab
mov dword [esp + 0x24], edx
imul edx, dword [esp + 0x20], 0xaaaaaaaa
add ecx, edx
mul ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp], ebx
add edx, ecx
shrd eax, edx, 2
shr edx, 2
mov dword [esp + 0x70], eax
add eax, 1
mov dword [esp + 0x74], edx
adc edx, 0
mov ecx, edx
mov edx, eax
shld ecx, eax, 3
shl edx, 3
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
call fcn.00404cf0
mov ebx, eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xd0]
mov dword [eax], ebx
test ebx, ebx
je 0x460df4
mov eax, dword [esp + 0x70]
mov dword [ebx], 0
mov dword [ebx + 4], 0
lea edx, [eax*8]
lea eax, [ebx + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00403e60
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x5c], eax
mov ecx, dword [edx + 0x34]
mov edx, dword [edx + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
call fcn.00403e60
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x460de0
test eax, eax
je 0x460dd0
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.00405900
test eax, eax
je 0x461130
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + 0x30]
mov edx, dword [edx + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x20], eax
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc0]
mov dword [esp], edx
call fcn.00405900
test eax, eax
mov eax, dword [esp + 0x5c]
je 0x461134
mov edx, dword [ebp + 0x30]
add edx, eax
mov dword [esp + 0x4c], edx
cmp eax, edx
jae 0x4612cf
add eax, 0xc
mov dword [esp + 0x68], 0
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], 0
add eax, 4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xc8], ebp
jmp 0x460c2f
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0xc0]
movzx ebx, byte [edi - 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], edi
mov edx, dword [eax + 0x28]
test ebx, ebx
jne 0x460bab
lea eax, [edi - 4]
mov dword [esp], eax
call edx
mov edi, dword [esp + 0x60]
add eax, dword [esp + 0x68]
adc edx, dword [esp + 0x6c]
test edi, edi
je 0x4610f0
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
mov eax, dword [eax + 8]
mov dword [esp + 0x60], 0
mov edi, dword [esp + 0x2c]
sub edi, 0xc
mov dword [esp + 0x78], edi
mov dword [esp], edi
call dword [eax + 0x28]
mov edi, dword [esp + 0xcc]
add eax, dword [esp + 0x50]
adc edx, dword [esp + 0x54]
mov esi, edx
cmp eax, dword [edi + 0x30]
sbb esi, dword [edi + 0x34]
jae 0x461211
mov edi, dword [esp + 0x48]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
add eax, edi
mov dword [esp + 4], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004062f0
mov edi, dword [esp + 0x30]
mov dword [edi - 8], eax
mov dword [edi - 4], edx
cmp ebx, 0x82
je 0x460e00
add dword [esp + 0x2c], 0xc
mov edi, dword [esp + 0x4c]
add dword [esp + 0x30], 8
cmp dword [esp + 0x34], edi
jae 0x460c59
mov eax, dword [esp + 0x30]
mov edi, dword [eax - 8]
mov edx, dword [eax - 4]
mov dword [esp + 0x64], eax
mov eax, edi
mov dword [esp + 0x38], edi
or eax, edx
mov dword [esp + 0x3c], edx
je 0x460b48
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
jmp 0x460c1b
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov ebp, dword [esp + 0xc8]
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
sub ecx, dword [esp + 0x90]
sbb ebx, dword [esp + 0x94]
mov eax, ecx
mov edx, ebx
shld edx, eax, 1
add eax, eax
add eax, ecx
adc edx, ebx
shld edx, eax, 2
shl eax, 2
mov dword [ebp + 0x28], eax
or eax, edx
mov dword [ebp + 0x2c], edx
jne 0x460cc2
or dword [ebp + 0x10], 0x40000
mov eax, dword [esp + 0xcc]
or dword [eax + 0x10], 0x40000
mov eax, dword [esp + 0x58]
mov ebx, dword [eax + 0x14]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00406440
mov ecx, dword [esp + 0x94]
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0x90]
mov dword [ebx + 0x28], eax
mov eax, edx
or eax, ecx
je 0x460dc0
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
add eax, 0xfffffff8
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
adc edx, 0xffffffff
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.00404cf0
mov ebp, eax
mov eax, dword [esp + 0x88]
mov dword [eax + 4], ebp
test ebp, ebp
je 0x460df4
mov eax, 0xb
mov ebx, dword [esp + 0x88]
mov edx, 0
cmp eax, esi
mov eax, 0
sbb eax, edi
mov eax, 0
jae 0x460da9
nop
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov dword [ebp + eax*8 + 4], edi
mov dword [ebp + eax*8], esi
mov edi, dword [ebx + eax*8 + 8]
and edi, dword [ebx + eax*8 + 0xc]
cmp edi, 0xffffffff
jne 0x460d87
add dword [esp + 0x40], 0xc
adc dword [esp + 0x44], 0
mov edi, dword [esp + 0x70]
add eax, 1
adc edx, 0
cmp eax, edi
mov edi, edx
sbb edi, dword [esp + 0x74]
jb 0x460d60
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov eax, edi
or eax, ebp
jne 0x460dc0
mov dword [esp + 4], 0x1f6
mov dword [esp], str..._.._bfd_stabs.c
call fcn.00402e90
lea esi, [esi]
mov eax, 1
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x460de0
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x48]
test eax, eax
je 0x460df4
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x460dc5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jae 0x460f28
xor ebp, ebp
mov edi, dword [esp + 0x38]
mov ebx, eax
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x3c]
jmp 0x460e42
cmp eax, 0x82
je 0x460e70
mov esi, dword [esp + 0x20]
test esi, esi
je 0x460e80
add ebx, 0xc
cmp ebx, ecx
jae 0x460f20
movzx eax, byte [ebx + 4]
test eax, eax
je 0x460f20
cmp eax, 0xa2
jne 0x460e28
mov eax, dword [esp + 0x20]
test eax, eax
je 0x460f20
sub eax, 1
mov dword [esp + 0x20], eax
jmp 0x460e37
add dword [esp + 0x20], 1
jmp 0x460e37
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 8]
mov dword [esp], ebx
call dword [eax + 0x28]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
add esi, eax
mov eax, dword [esp + 0x48]
add esi, eax
movzx eax, byte [esi]
test al, al
je 0x460e37
mov dword [esp + 0x38], ebx
mov edx, ecx
jmp 0x460ec0
mov esi, ecx
mov eax, ebx
test al, al
je 0x460f10
movsx ecx, al
mov ebx, ecx
sar ebx, 0x1f
add edi, ecx
lea ecx, [esi + 1]
adc ebp, ebx
movzx ebx, byte [esi + 1]
cmp al, 0x28
jne 0x460eb8
movzx eax, bl
test byte [eax + eax + 0x4963e0], 4
je 0x4611e5
lea esi, cs:[esi]
movzx eax, byte [ecx + 1]
add ecx, 1
movzx ebx, al
test byte [ebx + ebx + 0x4963e0], 4
jne 0x460ef0
mov esi, ecx
jmp 0x460ebc
mov ebx, dword [esp + 0x38]
mov ecx, edx
jmp 0x460e37
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.00405eb0
mov ebp, eax
test eax, eax
je 0x461130
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x46126c
mov esi, ebx
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
jmp 0x460f76
mov esi, dword [esi]
test esi, esi
je 0x460f84
mov eax, ecx
mov edx, ebx
xor eax, dword [esi + 8]
xor edx, dword [esi + 0xc]
or eax, edx
jne 0x460f70
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], 0x20
mov ebx, esi
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.00404cf0
test eax, eax
je 0x461130
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x18], 0x82
mov esi, dword [esp + 0x38]
sub edx, edi
mov edi, dword [esp + 0x3c]
mov dword [eax + 8], edx
sar edx, 0x1f
mov dword [eax + 0x14], edi
mov edi, dword [esp + 0x88]
mov dword [eax + 0xc], edx
mov edx, dword [edi]
mov dword [eax + 0x10], esi
mov dword [eax], edx
mov dword [edi], eax
test ebx, ebx
jne 0x461148
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.00406110
test eax, eax
je 0x461130
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword [eax], edx
mov dword [ebp + 0xc], eax
jmp 0x460c1b
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.00404cf0
mov ebx, eax
mov eax, dword [esp + 0xc4]
mov dword [eax], ebx
test ebx, ebx
je 0x460df4
call fcn.00406230
mov dword [ebx], eax
test eax, eax
je 0x460df4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x493aa0
mov dword [esp], eax
call fcn.004062f0
lea eax, [ebx + 4]
mov dword [esp + 8], 0xfb
mov dword [esp + 4], 0x4607b0
mov dword [esp], eax
call fcn.00405d40
test eax, eax
je 0x460df4
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], str..stabstr
mov dword [esp], eax
call fcn.00405520
mov dword [esp + 0x60], 1
mov esi, dword [ebp + 0x30]
mov dword [ebx + 0x14], eax
mov edi, dword [ebp + 0x34]
or dword [eax + 0x10], 0x10210
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
jmp 0x46090c
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x6c], edx
add dword [esp + 0x90], 1
mov dword [edi - 8], 0xffffffff
mov dword [edi - 4], 0xffffffff
mov edi, dword [esp + 0x68]
adc dword [esp + 0x94], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x68], eax
jmp 0x460c1b
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x460de8
mov dword [eax + 0x18], 0xc2
mov esi, dword [esp + 0x4c]
cmp dword [esp + 0x2c], esi
jae 0x460c59
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
xor edx, edx
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x64]
jmp 0x4611a9
cmp ecx, 0x82
je 0x4611c0
test edx, edx
jne 0x46119f
mov dword [ebx], 0xffffffff
add edi, 1
mov dword [ebx + 4], 0xffffffff
adc ebp, 0
add eax, 0xc
add ebx, 8
cmp eax, esi
jae 0x4611c8
movzx ecx, byte [eax + 4]
cmp ecx, 0xa2
jne 0x461180
test edx, edx
je 0x4611ee
sub edx, 1
jmp 0x46119f
add edx, 1
jmp 0x46119f
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebp
add dword [esp + 0x2c], 0xc
add dword [esp + 0x30], 8
jmp 0x460c2f
mov eax, ebx
mov esi, ecx
jmp 0x460ebc
add edi, 1
mov dword [ebx], 0xffffffff
adc ebp, 0
mov dword [ebx + 4], 0xffffffff
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebp
jmp 0x4611d6
mov edx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xc8]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
mov esi, dword [ebp]
mov edi, dword [0x483014]
mov dword [esp], edx
sub ebx, eax
call fcn.00402cb0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp], str._s__s0x_lx_:_Stabs_entry_has_invalid_string_index.
call edi
mov dword [esp], 0x10
call fcn.00402b90
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x460de8
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], 0x20
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.00404cf0
mov edx, eax
test eax, eax
je 0x461130
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
mov dword [edx + 0x18], 0x82
mov esi, dword [esp + 0x38]
sub eax, edi
mov edi, dword [esp + 0x3c]
mov dword [edx + 8], eax
sar eax, 0x1f
mov dword [edx + 0x14], edi
mov edi, dword [esp + 0x88]
mov dword [edx + 0xc], eax
mov eax, dword [edi]
mov dword [edx + 0x10], esi
mov dword [edx], eax
mov dword [edi], edx
jmp 0x460fea
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
jmp 0x460c6e