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

Disassembly:
sub esp, 0x80
mov eax, dword [0x5b2ee4]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebp
mov eax, 2
push esi
mov esi, dword [esp + 0x8c]
xor ebp, ebp
push edi
mov edi, 1
add dword [esi + 0xe4], edi
mov ecx, 4
mov edx, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd4]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
jb 0x5385a8
cmp byte [esi + 0x123], 0
push ebx
je 0x5383ee
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xe8]
add eax, edi
push eax
push ebp
push ecx
mov dword [esi + 0xe4], ebp
call fcn.0047e0e0
add esp, 0xc
jmp 0x538382
xor ebp, ebp
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x5383ee
mov edx, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub edx, dword [esp + ecx + 0x30]
mov edi, dword [esp + ecx + 0x14]
lea eax, [edx + edi - 1]
xor edx, edx
div edi
test byte [esi + 0x74], 2
mov ebp, eax
mov dword [esi + 0xe0], ebp
jne 0x5383e3
mov eax, dword [esi + 0xd0]
sub eax, dword [esp + ecx + 0x68]
mov edi, dword [esp + ecx + 0x4c]
xor edx, edx
lea eax, [eax + edi - 1]
div edi
test eax, eax
mov dword [esi + 0xd4], eax
je 0x538380
test ebp, ebp
je 0x538380
cmp bl, 7
jb 0x5385a7
xor ebp, ebp
test byte [esi + 0x70], 0x20
jne 0x53857c
lea ecx, [esp + 0x13]
mov byte [esp + 0x84], 0x49
mov byte [esp + 0x85], 0x44
mov byte [esp + 0x86], 0x41
mov byte [esp + 0x87], 0x54
mov byte [esp + 0x88], 0
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], 1
cmp dword [esi + 0x7c], ebp
jne 0x538539
cmp dword [esi + 0x10c], ebp
jne 0x538503
lea esp, [esp]
push ebp
push esi
call fcn.00535920
push esi
call fcn.005358a0
mov dword [esi + 0x10c], eax
add esp, 0xc
mov eax, 4
lea ecx, [esp + 0x84]
lea edx, [esi + 0x11c]
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x538490
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x538478
cmp eax, ebp
je 0x5384ed
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x5384df
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x5384ed
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x5384df
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x5384ed
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x5384df
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x5384ed
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x5384ed
cmp edi, ebp
mov eax, 1
jg 0x5384ef
or eax, 0xffffffff
jmp 0x5384ef
xor eax, eax
cmp eax, ebp
jne 0x5385c0
cmp dword [esi + 0x10c], ebp
je 0x538450
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov edx, dword [esi + 0xb0]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], edx
jbe 0x538522
mov dword [esi + 0x7c], ecx
mov eax, dword [esi + 0x7c]
push eax
push edx
push esi
call fcn.00534800
mov ecx, dword [esi + 0x7c]
add esp, 0xc
sub dword [esi + 0x10c], ecx
lea edx, [esi + 0x78]
push 1
push edx
call fcn.00552cc0
add esp, 8
cmp eax, 1
je 0x5385cb
cmp eax, ebp
jne 0x5385e5
cmp dword [esi + 0x88], ebp
jne 0x538434
push str.Extra_compressed_data
push esi
call fcn.0052e6c0
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], ebp
cmp dword [esi + 0x10c], ebp
jne 0x538589
cmp dword [esi + 0x7c], ebp
je 0x538597
push str.Extra_compression_data
push esi
call fcn.0052e6c0
add esp, 8
lea eax, [esi + 0x78]
push eax
call fcn.005529d0
add esp, 4
or dword [esi + 0x6c], 8
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0047e001
add esp, 0x80
ret
push str.Not_enough_image_data
push esi
call fcn.0052e7b0
cmp dword [esi + 0x88], ebp
je 0x538560
cmp dword [esi + 0x7c], ebp
jne 0x538560
cmp dword [esi + 0x10c], ebp
je 0x53856e
jmp 0x538560
mov eax, dword [esi + 0x90]
cmp eax, ebp
jne 0x5385f4
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0052e7b0
int3