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

Disassembly:
sub esp, 0x4f8
mov eax, dword [0x58213c]
xor eax, esp
mov dword [esp + 0x4f4], eax
push ebx
mov ebx, dword [esp + 0x500]
xor eax, eax
push ebp
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x28]
push esi
mov esi, dword [esp + 0x50c]
mov dword [esp + 0x10], esi
test al, 1
je 0x488708
test al, 6
je 0x4881e5
push dword [esp + 0x510]
push ebx
call fcn.00481900
add esp, 8
test dword [ebx + 0x2c], 0x100000
je 0x488708
push str.out_of_place
push ebx
call fcn.004805f0
add esp, 8
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.00511b56
add esp, 0x4f8
ret
mov ebp, dword [esp + 0x510]
cmp ebp, 0xe
jae 0x48822e
push ebp
push ebx
call fcn.00481900
add esp, 8
test dword [ebx + 0x2c], 0x100000
je 0x488708
push str.too_short
push ebx
call fcn.004805f0
add esp, 8
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.00511b56
add esp, 0x4f8
ret
movzx eax, word [ebx + 0x2a6]
test ax, ax
jns 0x48825c
push ebp
push ebx
call fcn.00481900
add esp, 8
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4f4]
xor ecx, esp
call fcn.00511b56
add esp, 0x4f8
ret
push edi
mov edi, 0x8000
test al, 4
jne 0x4886c9
mov edi, 0x51
lea eax, [esp + 0x2c]
cmp ebp, edi
cmovb edi, ebp
push edi
push eax
push ebx
call fcn.00481a90
sub ebp, edi
add esp, 0xc
mov dword [esp + 0x514], ebp
cmp ebp, 0xb
jae 0x4882bf
push ebp
push ebx
call fcn.00481900
push str.too_short
push ebx
call fcn.004804e0
add esp, 0x10
mov ecx, dword [esp + 0x504]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511b56
add esp, 0x4f8
ret
xor esi, esi
lea ecx, [esi + 3]
lea edx, [esi + 1]
cmp esi, edi
jae 0x488324
cmp byte [esp + edx + 0x2b], 0
je 0x488324
cmp edx, edi
jae 0x488323
cmp byte [esp + edx + 0x2c], 0
je 0x488323
lea eax, [ecx - 1]
cmp eax, edi
jae 0x48831e
cmp byte [esp + ecx + 0x2b], 0
je 0x48831e
cmp ecx, edi
jae 0x488319
cmp byte [esp + ecx + 0x2c], 0
je 0x488319
lea eax, [esi + 4]
cmp eax, edi
jae 0x488314
cmp byte [esp + esi + 0x30], 0
je 0x488314
add edx, 5
add esi, 5
add ecx, 5
cmp edx, 0x51
jb 0x4882c7
jmp 0x488324
add esi, 4
jmp 0x488324
add esi, 3
jmp 0x488324
add esi, 2
jmp 0x488324
inc esi
lea eax, [esi - 1]
cmp eax, 0x4e
ja 0x4886b6
lea eax, [esi + 1]
mov dword [esp + 0x1c], eax
cmp eax, edi
jae 0x4886a3
cmp byte [esp + esi + 0x2d], 0
jne 0x4886a3
push 0x69434350
push ebx
call fcn.0048add0
add esp, 8
test eax, eax
jne 0x488691
push 0x84
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00514400
lea eax, [esp + 0x3a]
mov dword [esp + 0x24], 0x84
add eax, esi
sub edi, esi
mov dword [ebx + 0x38], eax
sub edi, 2
push 0
lea eax, [esp + 0x28]
mov dword [ebx + 0x3c], edi
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x52c]
push eax
push 0x400
lea eax, [esp + 0x124]
push eax
push ebx
call fcn.0048aed0
add esp, 0x28
cmp dword [esp + 0x18], 0
jne 0x48866a
movzx ebp, byte [esp + 0x80]
lea esi, [ebx + 0x25c]
movzx eax, byte [esp + 0x81]
shl ebp, 8
add ebp, eax
movzx eax, byte [esp + 0x82]
shl ebp, 8
add ebp, eax
movzx eax, byte [esp + 0x83]
shl ebp, 8
add ebp, eax
cmp ebp, 0x84
jae 0x48841e
push str.too_short
push ebp
lea eax, [esp + 0x34]
push eax
push esi
push ebx
call fcn.0048a820
add esp, 0x14
test eax, eax
je 0x488671
mov eax, dword [ebx + 0x21c]
test eax, eax
je 0x488449
cmp eax, ebp
jae 0x488449
push str.exceeds_application_limits
push ebp
lea eax, [esp + 0x34]
push eax
push esi
push ebx
call fcn.0048a820
add esp, 0x14
test eax, eax
je 0x488671
movzx eax, byte [ebx + 0x103]
push eax
lea eax, [esp + 0x84]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
push esi
push ebx
call fcn.0048a3e0
add esp, 0x18
test eax, eax
je 0x488671
movzx ecx, byte [esp + 0x100]
movzx eax, byte [esp + 0x101]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x102]
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x103]
push 2
shl ecx, 8
add ecx, eax
push ebp
push ebx
mov dword [esp + 0x24], ecx
call fcn.0048c400
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x488660
mov edi, eax
lea esi, [esp + 0x80]
mov ecx, 0x21
add eax, 0x84
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0
lea ecx, [esi + esi*2]
shl ecx, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x520]
push eax
push 0x400
lea eax, [esp + 0x118]
push eax
push ebx
call fcn.0048aed0
add esp, 0x1c
cmp dword [esp + 0x18], 0
jne 0x48866a
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edi
push ebp
push eax
lea eax, [ebx + 0x25c]
push eax
push ebx
call fcn.0048a720
add esp, 0x14
test eax, eax
je 0x488671
mov eax, ebp
add esi, 0xb
sub eax, dword [esp + 0x28]
sub eax, 0x84
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 1
push eax
lea eax, [esi + esi*2]
lea eax, [edi + eax*4]
push eax
lea eax, [esp + 0x520]
push eax
push 0x400
lea eax, [esp + 0x118]
push eax
push ebx
call fcn.0048aed0
mov esi, dword [esp + 0x530]
add esp, 0x1c
test esi, esi
je 0x488596
test dword [ebx + 0x2c], 0x100000
jne 0x488596
mov dword [esp + 0x10], str.extra_compressed_data
jmp 0x488671
cmp dword [esp + 0x18], 0
jne 0x48866a
test esi, esi
je 0x4885b3
push str.extra_compressed_data
push ebx
call fcn.004805f0
add esp, 8
push esi
push ebx
call fcn.00481900
push dword [ebx + 0x68]
lea eax, [ebx + 0x25c]
mov dword [esp + 0x2c], 1
push edi
push eax
push ebx
call fcn.0048aae0
mov esi, dword [esp + 0x2c]
add esp, 0x18
test esi, esi
je 0x488634
push 0
push 0x10
push esi
push ebx
call fcn.00486bc0
push dword [esp + 0x2c]
push ebx
call fcn.0048c070
add esp, 0x18
mov dword [esi + 0x74], eax
test eax, eax
je 0x488640
push dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.005135c0
or dword [esi + 0xe8], 0x10
or dword [esi + 8], 0x1000
push esi
push ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x78], edi
mov dword [ebx + 0x238], 0
call fcn.00480e50
add esp, 0x14
mov dword [ebx + 0x34], 0
jmp 0x4882a6
push esi
mov edi, 0x8000
mov dword [esp + 0x14], str.out_of_memory
or word [ebx + 0x2a6], di
push ebx
call fcn.00480e50
add esp, 8
jmp 0x48867a
mov dword [esp + 0x10], str.out_of_memory
jmp 0x488671
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
mov edi, 0x8000
cmp dword [esp + 0x20], 0
mov dword [ebx + 0x34], 0
jne 0x4886dc
mov ebp, dword [esp + 0x514]
jmp 0x4886d2
mov esi, dword [ebx + 0x50]
mov edi, 0x8000
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
jmp 0x4886d2
mov esi, dword [esp + 0x14]
mov edi, 0x8000
mov dword [esp + 0x10], str.bad_compression_method
jmp 0x4886d2
mov esi, dword [esp + 0x14]
mov edi, 0x8000
mov dword [esp + 0x10], str.bad_keyword
jmp 0x4886d2
mov eax, str.too_many_profiles
mov dword [esp + 0x10], eax
push ebp
push ebx
call fcn.00481900
add esp, 8
or word [ebx + 0x2a6], di
push esi
push ebx
call fcn.00480e50
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4882a6
push eax
push ebx
call fcn.004804e0
add esp, 8
jmp 0x4882a6
push ebx
call fcn.00486a30
int3