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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x56800c]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax + 0x40]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.0041d4b0
mov esi, eax
test edx, edx
jg 0x489889
jl 0x4898c4
test esi, esi
jb 0x4898c4
xor eax, eax
cmp eax, edx
jne 0x4898c4
lea eax, [esi + 3]
cmp eax, 3
jb 0x4898c4
push eax
call fcn.004c8cd1
mov ebx, eax
add esp, 4
mov dword [esp + 0x44], ebx
test ebx, ebx
je 0x4898c4
push esi
mov edx, ebx
mov ecx, edi
call fcn.0041d6a0
add esp, 4
test al, al
jne 0x4898e9
push ebx
call fcn.004bf8aa
add esp, 4
xor eax, eax
lea esi, [eax + 2]
push eax
call fcn.004bf8aa
mov ecx, dword [esp + 0xc8]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
lea eax, [esi + ebx]
mov word [esi + ebx + 1], 0
push 0x4f9318
mov edx, 0x4efbd8
mov dword [esp + 0x24], eax
mov ecx, ebx
mov byte [esi + ebx], 0
call fcn.0041a000
push 0x4f9328
mov edx, 0x4f9324
mov ecx, ebx
call fcn.0041a000
push 0xffffffffffffffff
xor edx, edx
mov ecx, ebx
call fcn.00419c80
mov esi, eax
mov edx, str..tex
push 0
mov ecx, esi
call fcn.00419a10
push esi
mov edi, eax
call fcn.004bf8aa
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x40]
call fcn.0041cd60
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.0041cdf0
push esi
mov dword [esp + 0x34], eax
call fcn.004bf8aa
push edi
call fcn.004bf8aa
mov edi, dword [esp + 0x38]
mov ecx, ebx
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x489973
mov esi, dword [esp + 0x20]
sub ecx, edx
lea eax, [ecx + ebx]
cmp eax, esi
jae 0x489993
cmp byte [eax], 0
jne 0x489991
inc eax
cmp eax, esi
jb 0x489987
cmp eax, esi
sbb ebx, ebx
mov dword [esp + 0x24], 0
and ebx, eax
je 0x489f34
lea eax, [esp + 0x24]
push eax
push str.version__u
push ebx
call fcn.0041afa0
add esp, 0xc
test eax, eax
je 0x489f34
cmp dword [esp + 0x24], 1
jne 0x489f34
mov edi, dword [esp + 0x18]
lea eax, [edi + 0x4c]
mov ecx, eax
mov dword [esp + 0x2c], eax
call fcn.0040c180
lea eax, [edi + 0xa0]
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.0040c350
lea eax, [edi + 0x1b4]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.0040c350
lea eax, [edi + 0x2c8]
mov ecx, eax
mov dword [esp + 0x30], eax
call fcn.0048ac80
lea eax, [edi + 0x35c]
mov ecx, eax
mov dword [esp + 0x3c], eax
call fcn.0040be50
lea eax, [esp + 0x78]
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x68]
mov dword [esp + 0xb8], 0
mov dword [esp + 0x74], eax
call fcn.0040be50
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 1
push eax
lea ecx, [edi + 0x35c]
mov dword [esp + 0x14], 0
call fcn.0040c130
push dword [edi + 0x4c]
lea ecx, [esp + 0x6c]
call fcn.004565b0
mov eax, dword [esp + 0x1c]
xor edi, edi
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call fcn.0040c130
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.004594a0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x489ab8
sub ecx, edx
lea eax, [ecx + ebx]
cmp eax, esi
jae 0x489ad4
cmp byte [eax], 0
jne 0x489ad2
inc eax
cmp eax, esi
jb 0x489ac8
cmp eax, esi
sbb ebx, ebx
and ebx, eax
mov dword [esp + 0x10], ebx
je 0x489ef3
movsx eax, byte [ebx]
add eax, 0xffffffd8
cmp eax, 0x4b
ja case.0x489af4.42
movzx eax, byte [eax + 0x489f64]
jmp dword [eax*4 + 0x489f4c]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
mov eax, dword [ecx + eax*4 - 4]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
push str.l__u__u__u
push ebx
call fcn.0041afa0
add esp, 0x14
test eax, eax
je 0x489b9e
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0xc], eax
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00415190
test al, al
jne 0x489b47
xor eax, eax
mov byte [eax], al
mov edx, dword [esp + 0xc]
mov ecx, edx
mov eax, dword [edi]
shl ecx, 4
add ecx, dword [edi + 0xc]
mov dword [esp + 0xc], ecx
cmp eax, edx
jbe 0x489c0e
sub eax, edx
shl eax, 4
push eax
push ecx
lea eax, [ecx + 0x10]
push eax
call fcn.004bdaf0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0xc], eax
jmp case.0x489af4.42
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x4c]
push eax
push str.l__u__u
push ebx
call fcn.0041afa0
add esp, 0x10
test eax, eax
je case.0x489af4.42
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0xc], eax
inc eax
push eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x14], eax
call fcn.00415190
test al, al
jne 0x489be1
xor eax, eax
mov byte [eax], al
mov edx, dword [esp + 0xc]
mov ecx, edx
mov eax, dword [edi]
shl ecx, 4
add ecx, dword [edi + 0xc]
mov dword [esp + 0xc], ecx
cmp eax, edx
jbe 0x489c0e
sub eax, edx
shl eax, 4
push eax
push ecx
lea eax, [ecx + 0x10]
push eax
call fcn.004bdaf0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0xc], eax
jmp case.0x489af4.42
lea eax, [esp + 0x28]
push eax
push str.s__u
push ebx
call fcn.0041afa0
add esp, 0xc
test eax, eax
je case.0x489af4.42
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
call fcn.0040c130
jmp case.0x489af4.42
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
test eax, eax
je case.0x489af4.42
cmp eax, dword [esp + 0x1c]
ja case.0x489af4.42
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
push 0x4f9358
push ebx
call fcn.0041afa0
add esp, 0x14
test eax, eax
je 0x489d2d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00415190
test al, al
jne 0x489cc8
xor eax, eax
mov byte [eax], al
mov edx, dword [esp + 0xc]
mov ecx, edx
mov eax, dword [esp + 0x14]
shl ecx, 4
mov eax, dword [eax + 0xc]
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [eax]
cmp eax, edx
jbe 0x489da6
sub eax, edx
shl eax, 4
push eax
push ecx
lea eax, [ecx + 0x10]
push eax
call fcn.004bdaf0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [ecx], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0xc], eax
jmp case.0x489af4.42
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x60]
push eax
push str.p__u__u__u
push ebx
call fcn.0041afa0
add esp, 0x14
test eax, eax
je case.0x489af4.42
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00415190
test al, al
jne 0x489d6f
xor eax, eax
mov byte [eax], al
mov edx, dword [esp + 0xc]
mov ecx, edx
mov eax, dword [esp + 0x14]
shl ecx, 4
mov eax, dword [eax + 0xc]
add ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [eax]
cmp eax, edx
jbe 0x489da6
sub eax, edx
shl eax, 4
push eax
push ecx
lea eax, [ecx + 0x10]
push eax
call fcn.004bdaf0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esp + 0x58]
mov dword [ecx], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 0xc], eax
jmp case.0x489af4.42
push 0xffffffffffffffff
lea ecx, [ebx + 1]
xor edx, edx
call fcn.00419c80
mov esi, eax
add esp, 4
cmp word [esi], 0x22
jne 0x489e15
mov ecx, esi
call fcn.00419500
cmp word [esi + eax*2 - 2], 0x22
jne 0x489e15
mov ecx, esi
call fcn.00419500
lea ecx, [esi + 2]
lea edx, [eax - 2]
call fcn.00419b30
push esi
mov ebx, eax
call fcn.004bf8aa
add esp, 4
mov esi, ebx
push 0x4f936c
mov edx, 0x4f9380
mov ecx, esi
call fcn.0041a040
add esp, 4
mov ecx, esi
call fcn.0041cce0
test eax, eax
je 0x489e3b
xor ecx, ecx
cmp cx, word [eax]
jne 0x489e56
push 0
mov edx, str..tex
mov ecx, esi
call fcn.00419a10
push esi
mov ebx, eax
call fcn.004bf8aa
add esp, 8
mov esi, ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x489e78
mov ecx, dword [esp + 0x18]
push esi
call fcn.00489470
push esi
mov ebx, eax
call fcn.004bf8aa
add esp, 4
mov esi, ebx
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x68]
push dword [ebx]
call fcn.004565b0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
mov ecx, ebx
call fcn.0040c130
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call fcn.004594a0
push 0
call fcn.004bf8aa
mov ebx, dword [esp + 0x14]
add esp, 4
mov esi, dword [esp + 0x20]
jmp case.0x489af4.42
cmp dword [esp + 0x68], 1
jbe case.0x489af4.42
mov esi, dword [edi]
lea ecx, [esp + 0x68]
call fcn.00456570
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x2d4]
mov dword [ecx + eax*8 + 4], esi
mov esi, dword [esp + 0x20]
jmp case.0x489af4.42
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [edx + 0x2d4]
mov dword [ecx + 4], eax
lea eax, [edx + 0x10]
push eax
push dword [edx + 0x40]
mov byte [edx + 8], 0
call fcn.004ccfad
add esp, 8
lea ecx, [esp + 0x68]
xor esi, esi
call fcn.00439f70
mov edi, esi
push edi
call fcn.004bf8aa
mov eax, dword [esp + 0x48]
add esp, 4
jmp 0x4898c9
push edi
mov esi, 2
call fcn.004bf8aa
mov eax, dword [esp + 0x48]
add esp, 4
jmp 0x4898c9