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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x100
mov ebx, ecx
mov eax, dword [ecx + 0x90]
or eax, dword [ecx + 0x94]
je 0x490547
lea esi, [ebx + 0x88]
mov dword [esp + 0xe0], str.RELA
mov dword [esp + 0xe4], 4
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xe0]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], esi
mov dword [esp], 4
mov ecx, ebx
call dword [eax + 0x10c]
sub esp, 0x10
mov ecx, esi
call fcn.00490d50
test edx, edx
je 0x490547
mov edi, eax
shl edx, 2
lea esi, [edx + edx*2]
add edi, 4
nop dword [eax]
mov eax, dword [edi]
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x18], ecx
bswap eax
shr eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [edi - 4]
bswap eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov eax, dword [edi + 4]
mov byte [esp + 0x30], 1
bswap eax
mov dword [esp + 0x28], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.004911f0
add edi, 0xc
add esi, 0xfffffff4
jne 0x4904f0
mov eax, dword [ebx + 0x50]
or eax, dword [ebx + 0x54]
mov ecx, ebx
je 0x4905f2
lea edi, [ecx + 0x48]
mov dword [esp + 0xd8], 0x5581b7
mov dword [esp + 0xdc], 3
mov eax, dword [ecx]
movsd xmm0, qword [esp + 0xd8]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], edi
mov dword [esp], 9
mov esi, ecx
call dword [eax + 0x10c]
sub esp, 0x10
mov ecx, edi
call fcn.00491720
mov ecx, esi
test edx, edx
je 0x4905f2
mov edi, eax
mov ebx, edx
shl ebx, 3
add edi, 4
nop dword [eax]
mov eax, dword [edi]
mov edx, eax
shr edx, 0x18
mov dword [esp + 0x18], edx
bswap eax
shr eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [edi - 4]
bswap eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 0
mov byte [esp + 0x30], 0
lea edx, [esp + 0x18]
call fcn.004911f0
mov ecx, esi
add edi, 8
add ebx, 0xfffffff8
jne 0x4905b0
mov eax, dword [ecx + 0xd0]
or eax, dword [ecx + 0xd4]
mov ebx, ecx
je 0x490bbc
lea eax, [ebx + 0xc8]
mov dword [esp + 0xd0], str.RELR
mov dword [esp + 0xd4], 4
mov edx, dword [ebx]
movsd xmm0, qword [esp + 0xd0]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], eax
mov dword [esp], 9
mov ecx, ebx
call dword [edx + 0x10c]
sub esp, 0x10
mov esi, dword [ebx + 0xc8]
test esi, esi
mov dword [esp + 0x14], ebx
je 0x4907dd
lea eax, [ebx + 0xd0]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xe0]
mov dword [esp], eax
lea ecx, [esp + 0x18]
call fcn.0054aa44
sub esp, 4
mov dword [esp + 0x40], esi
mov ebx, esi
sub ebx, dword [esp + 0x18]
mov esi, ebx
sar esi, 0x1f
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe0]
mov dword [esp], eax
lea ecx, [esp + 0x18]
call fcn.0054aa44
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], 0
xor edi, edi
sub ecx, ebx
mov ebx, dword [esp + 0x14]
mov edx, 0
sbb edx, esi
mov eax, dword [ebx + 0xd0]
cmp ecx, eax
sbb edx, dword [ebx + 0xd4]
jae 0x4907e6
mov ecx, dword [ebx + 0xe4]
mov dword [esp + 0xe8], str.unable_to_read_data_at_0x
lea eax, [esp + 0xb0]
mov dword [esp + 0xf0], eax
mov word [esp + 0xf8], 0xf03
lea eax, [esp + 0xe8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], str._of_size_0x
mov word [esp + 0x54], 0x302
lea eax, [esp + 0x44]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov word [esp + 0x90], 0xf02
lea eax, [esp + 0x80]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0x551c1d
mov word [esp + 0x7c], 0x302
mov eax, dword [ebx + 0xf4]
mov edx, dword [ebx + 0xf8]
lea esi, [esp + 0x6c]
mov dword [esp + 0x94], esi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov word [esp + 0xa4], 0x502
lea eax, [esp + 0x94]
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], str._:_it_goes_past_the_end_of_the_file_of_size_0x
mov word [esp + 0x68], 0x302
lea eax, [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x20], eax
mov word [esp + 0x28], 0xf02
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.00539490
sub esp, 4
jmp 0x490b0c
xor ecx, ecx
xor edi, edi
jmp 0x490b10
mov esi, dword [esp + 0x3c]
test al, 3
jne 0x490809
mov ecx, dword [ebx + 0xd8]
xor ecx, 4
or ecx, dword [ebx + 0xdc]
jne 0x490809
sar eax, 2
mov edi, eax
jmp 0x490b0c
xorps xmm0, xmm0
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
movzx ecx, byte [ebx + 0xe8]
mov eax, ecx
and al, 1
je 0x49083c
mov ecx, dword [ebx + 0xec]
test ecx, ecx
jne 0x490846
jmp 0x490933
shr ecx, 1
test ecx, ecx
je 0x490933
lea ebx, [ecx + 5]
cmp ebx, 0xfffffff8
jae 0x490d38
cmp ebx, 0xa
ja 0x49086f
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
add bl, bl
mov byte [esp + 0x18], bl
xor esi, esi
jmp 0x4908a5
mov edi, ebx
or edi, 7
lea eax, [edi + 1]
mov dword [esp], eax
mov esi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, esi
mov esi, eax
add edi, 2
mov dword [esp + 0x18], edi
mov edx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0xe8]
and al, 1
mov ebx, edx
test bl, 1
lea edx, [esp + 0x19]
cmove esi, edx
test al, al
je 0x4908bf
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0xf0]
jmp 0x4908c9
mov ebx, dword [esp + 0x14]
lea eax, [ebx + 0xe9]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
mov edi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov dword [esi + edi], 0x73616820
mov word [esi + edi + 4], 0x20
movzx eax, byte [esp + 0x18]
test al, 1
je 0x490900
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
jmp 0x49090a
shr eax, 1
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x19]
mov dword [esp + 4], eax
mov dword [esp], ecx
lea ecx, [esp + 0x80]
call fcn.0054ab46
sub esp, 8
test byte [esp + 0x18], 1
je 0x490933
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov word [esp + 0x7c], 0x503
mov dword [esp + 0x6c], str.invalid
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0xf8]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], str.__0x
mov word [esp + 0xa4], 0x302
lea ebx, [esp + 0x94]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], esi
mov word [esp + 0x68], 0xf02
lea edi, [esp + 0x58]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x5514e0
mov word [esp + 0x28], 0x302
lea eax, [esp + 0x18]
mov dword [esp], eax
lea ecx, [esp + 0x44]
call fcn.0054a73e
sub esp, 4
movzx eax, byte [esp + 0x44]
test al, 1
je 0x4909c9
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
jmp 0x4909cf
shr eax, 1
lea ecx, [esp + 0x45]
mov dword [esp + 4], eax
mov dword [esp], ecx
lea ecx, [esp + 0x80]
call fcn.0054ab46
sub esp, 8
test byte [esp + 0x44], 1
je 0x4909f8
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x100]
test eax, eax
je 0x490ac8
mov word [esp + 0x7c], 0x503
mov dword [esp + 0x6c], str._or
mov ecx, dword [esi + 0xfc]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x58], ebx
lea eax, [esi + 0xd8]
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x9c], str.__0x
mov word [esp + 0xa4], 0x302
mov word [esp + 0x68], 0xf02
mov dword [esp + 0x20], 0x5514e0
mov word [esp + 0x28], 0x302
lea eax, [esp + 0x18]
mov dword [esp], eax
lea ecx, [esp + 0x44]
call fcn.0054a73e
sub esp, 4
movzx eax, byte [esp + 0x44]
test al, 1
je 0x490a95
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
jmp 0x490a9b
shr eax, 1
lea ecx, [esp + 0x45]
mov dword [esp + 4], eax
mov dword [esp], ecx
lea ecx, [esp + 0x80]
call fcn.0054ab46
sub esp, 8
test byte [esp + 0x44], 1
je 0x490ac4
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xe4]
mov word [esp + 0x28], 0x104
lea eax, [esp + 0x80]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.00539490
sub esp, 4
test byte [esp + 0x80], 1
mov ebx, esi
je 0x490b0a
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
xor edi, edi
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ecx
movsd xmm0, qword [esp + 0xc8]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x58]
call fcn.0054aa62
sub esp, 0xc
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
cmp edi, ebx
je 0x490ba8
add edi, 4
mov esi, dword [esp + 0x14]
nop word cs:[eax + eax]
mov eax, dword [edi]
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x18], ecx
bswap eax
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi - 4]
bswap ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.004911f0
lea eax, [edi + 8]
add edi, 4
cmp edi, ebx
mov edi, eax
jne 0x490b60
mov edi, dword [esp + 0x58]
test edi, edi
mov ebx, dword [esp + 0x14]
je 0x490bbc
mov dword [esp + 0x5c], edi
mov dword [esp], edi
call sub.libc.dll_operator_delete_void_
mov eax, dword [ebx + 0x110]
or eax, dword [ebx + 0x114]
je 0x490d30
lea esi, [ebx + 0x108]
mov eax, dword [ebx + 0x118]
xor eax, 0xc
or eax, dword [ebx + 0x11c]
jne 0x490c90
mov dword [esp + 0xc0], 0x5581c0
mov dword [esp + 0xc4], 3
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], esi
mov dword [esp], 4
mov ecx, ebx
call dword [eax + 0x10c]
sub esp, 0x10
mov ecx, esi
call fcn.00490d50
test edx, edx
je 0x490d30
mov edi, eax
shl edx, 2
lea esi, [edx + edx*2]
add edi, 4
mov eax, dword [edi]
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x18], ecx
bswap eax
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi - 4]
bswap ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov byte [esp + 0x30], 1
bswap eax
mov dword [esp + 0x28], eax
sar eax, 0x1f
mov dword [esp + 0x2c], eax
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.004911f0
add edi, 0xc
add esi, 0xfffffff4
jne 0x490c40
jmp 0x490d30
mov dword [esp + 0xb8], 0x5581c0
mov dword [esp + 0xbc], 3
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], esi
mov dword [esp], 9
mov ecx, ebx
call dword [eax + 0x10c]
sub esp, 0x10
mov ecx, esi
call fcn.00491720
test edx, edx
je 0x490d30
mov edi, eax
mov esi, ebx
mov ebx, edx
shl ebx, 3
add edi, 4
nop word cs:[eax + eax]
mov eax, dword [edi]
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x18], ecx
bswap eax
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi - 4]
bswap ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.004911f0
add edi, 8
add ebx, 0xfffffff8
jne 0x490cf0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.00407760
int3