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

Disassembly:
sub esp, 0x80
mov eax, dword [0x4d8668]
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 0x4797e8
cmp byte [esi + 0x123], 0
push ebx
je 0x47962e
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.0042bd50
add esp, 0xc
jmp 0x4795c2
xor ebp, ebp
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x47962e
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 0x479623
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 0x4795c0
test ebp, ebp
je 0x4795c0
cmp bl, 7
jb 0x4797e7
xor ebp, ebp
test byte [esi + 0x70], 0x20
jne 0x4797bc
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 0x479779
cmp dword [esi + 0x10c], ebp
jne 0x479743
lea esp, [esp]
push ebp
push esi
call fcn.00476b60
push esi
call fcn.00476ae0
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 0x4796d0
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4796b8
cmp eax, ebp
je 0x47972d
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x47971f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x47972d
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x47971f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x47972d
movzx edi, byte [edx]
movzx ebx, byte [ecx]
sub edi, ebx
jne 0x47971f
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x47972d
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x47972d
cmp edi, ebp
mov eax, 1
jg 0x47972f
or eax, 0xffffffff
jmp 0x47972f
xor eax, eax
cmp eax, ebp
jne 0x479800
cmp dword [esi + 0x10c], ebp
je 0x479690
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 0x479762
mov dword [esi + 0x7c], ecx
mov eax, dword [esi + 0x7c]
push eax
push edx
push esi
call fcn.00475a40
mov ecx, dword [esi + 0x7c]
add esp, 0xc
sub dword [esi + 0x10c], ecx
lea edx, [esi + 0x78]
push 1
push edx
call fcn.00493f00
add esp, 8
cmp eax, 1
je 0x47980b
cmp eax, ebp
jne 0x479825
cmp dword [esi + 0x88], ebp
jne 0x479674
push str.Extra_compressed_data
push esi
call fcn.0046f900
add esp, 8
or dword [esi + 0x6c], 8
or dword [esi + 0x70], 0x20
mov dword [esi + 0x88], ebp
cmp dword [esi + 0x10c], ebp
jne 0x4797c9
cmp dword [esi + 0x7c], ebp
je 0x4797d7
push str.Extra_compression_data
push esi
call fcn.0046f900
add esp, 8
lea eax, [esi + 0x78]
push eax
call fcn.00493c10
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.0042b558
add esp, 0x80
ret
push str.Not_enough_image_data
push esi
call fcn.0046f9f0
cmp dword [esi + 0x88], ebp
je 0x4797a0
cmp dword [esi + 0x7c], ebp
jne 0x4797a0
cmp dword [esi + 0x10c], ebp
je 0x4797ae
jmp 0x4797a0
mov eax, dword [esi + 0x90]
cmp eax, ebp
jne 0x479834
mov eax, str.Decompression_Error
push eax
push esi
call fcn.0046f9f0
int3