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

Disassembly:
sub esp, 0x48
mov eax, dword [0x4d7590]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x58]
mov ebp, 0xff
push edi
mov edi, 0x55
mov dword [esp + 0x10], eax
mov byte [esp + 0x4c], 0x49
mov byte [esp + 0x4d], 0x44
mov byte [esp + 0x4e], 0x41
mov byte [esp + 0x4f], 0x54
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0x33
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0x88
mov dword [esp + 0x20], 0x22
mov dword [esp + 0x24], 0xaa
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
test esi, esi
je 0x4760c8
test byte [esi + 0x6c], 0x40
jne 0x475d2b
push esi
call fcn.0048b840
add esp, 4
cmp byte [esi + 0x123], 0
je case.default.0x475d52
test byte [esi + 0x70], 2
je case.default.0x475d52
movzx eax, byte [esi + 0x124]
cmp eax, 6
ja case.default.0x475d52
jmp dword [eax*4 + 0x4760dc]
test byte [esi + 0xe4], 7
je case.default.0x475d52
test ebx, ebx
je 0x475d75
push ebp
push ebx
push esi
call fcn.0048af20
add esp, 0xc
push esi
call fcn.0048e030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00436eab
add esp, 0x48
ret
test byte [esi + 0xe4], 7
jne 0x475da7
cmp dword [esi + 0xc8], 5
jae case.default.0x475d52
test ebx, ebx
je 0x475d75
push 0xf
jmp 0x475d6b
mov eax, dword [esi + 0xe4]
mov ecx, eax
and cl, 7
cmp cl, 4
je case.default.0x475d52
test ebx, ebx
je 0x475d75
test al, 4
jmp 0x475d68
mov eax, 3
test byte [esi + 0xe4], al
jne 0x475ddc
cmp dword [esi + 0xc8], eax
jae case.default.0x475d52
test ebx, ebx
je 0x475d75
push 0x33
jmp 0x475d6b
mov eax, dword [esi + 0xe4]
mov edx, eax
and dl, 3
cmp dl, 2
je case.default.0x475d52
test ebx, ebx
je 0x475d75
test al, 2
jmp 0x475d68
test byte [esi + 0xe4], 1
jne 0x475e15
cmp dword [esi + 0xc8], 2
jae case.default.0x475d52
test ebx, ebx
je 0x475d75
push edi
jmp 0x475d6b
test byte [esi + 0xe4], 1
je 0x475d75
test byte [esi + 0x68], 4
jne 0x475e44
push str.Invalid_attempt_to_read_row_data
push esi
call fcn.0048a800
add esp, 8
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xdc]
mov ebp, dword [esp + 0x4c]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ecx
lea edi, [esi + 0x74]
cmp dword [esi + 0x78], 0
jne 0x475edd
cmp dword [esi + 0x10c], 0
jne 0x475ea8
push 0
push esi
call fcn.0048bbd0
push esi
call fcn.0048bb60
add esp, 0xc
mov dword [esi + 0x10c], eax
cmp dword [esi + 0x11c], ebp
je 0x475e9f
push str.Not_enough_image_data
push esi
call fcn.0048a800
add esp, 8
cmp dword [esi + 0x10c], 0
je 0x475e72
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0xac]
mov dword [esi + 0x78], eax
mov dword [edi], edx
cmp eax, ecx
jbe 0x475ec6
mov dword [esi + 0x78], ecx
mov eax, dword [esi + 0x78]
push eax
push edx
push esi
call fcn.0048aa60
mov ecx, dword [esi + 0x78]
add esp, 0xc
sub dword [esi + 0x10c], ecx
push 1
push edi
call fcn.004581a0
add esp, 8
cmp eax, 1
je 0x475f19
test eax, eax
je 0x475f0a
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x475f00
mov eax, str.Decompression_error
push eax
push esi
call fcn.0048a800
add esp, 8
cmp dword [esi + 0x84], 0
jne 0x475e63
jmp 0x475f47
cmp dword [esi + 0x84], 0
jne 0x475f31
cmp dword [esi + 0x78], 0
jne 0x475f31
cmp dword [esi + 0x10c], 0
je 0x475f3f
push str.Extra_compressed_data
push esi
call fcn.0048a800
add esp, 8
or dword [esi + 0x68], 8
or dword [esi + 0x6c], 0x20
movzx edx, byte [esi + 0x126]
movzx eax, byte [esi + 0x12a]
mov ecx, dword [esi + 0xe0]
mov byte [esi + 0x108], dl
movzx edx, byte [esi + 0x127]
mov byte [esi + 0x10a], al
mov al, byte [esi + 0x129]
lea edi, [esi + 0x100]
mov byte [esi + 0x10b], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x109], dl
movzx eax, al
jb 0x475f97
shr eax, 3
imul eax, ecx
jmp 0x475fa0
imul eax, ecx
add eax, 7
shr eax, 3
mov dword [esi + 0x104], eax
mov eax, dword [esi + 0xec]
mov cl, byte [eax]
test cl, cl
je 0x475fca
mov edx, dword [esi + 0xe8]
movzx ecx, cl
push ecx
inc edx
push edx
inc eax
push eax
push edi
push esi
call fcn.0048b670
add esp, 0x14
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0xe8]
inc eax
push eax
push ecx
push edx
push esi
call fcn.0048a360
add esp, 0x10
test byte [esi + 0x230], 4
je 0x47600c
cmp byte [esi + 0x238], 0x40
jne 0x47600c
mov eax, dword [esi + 0xec]
inc eax
push eax
push edi
call fcn.00491990
add esp, 8
cmp dword [esi + 0x70], 0
jne 0x47601b
test dword [esi + 0x6c], 0x400000
je 0x476024
push esi
call fcn.004927e0
add esp, 4
cmp byte [esi + 0x123], 0
je 0x476076
test byte [esi + 0x70], 2
je 0x476076
cmp byte [esi + 0x124], 6
jae 0x476045
push esi
call fcn.0048b210
add esp, 4
test ebx, ebx
je 0x47605f
movzx ecx, byte [esi + 0x124]
mov edx, dword [esp + ecx*4 + 0x30]
push edx
push ebx
push esi
call fcn.0048af20
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4760a0
movzx ecx, byte [esi + 0x124]
mov edx, dword [esp + ecx*4 + 0x14]
push edx
push eax
jmp 0x476097
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47608d
push 0xff
push eax
push esi
call fcn.0048af20
add esp, 0xc
test ebx, ebx
je 0x4760a0
push 0xff
push ebx
push esi
call fcn.0048af20
add esp, 0xc
push esi
call fcn.0048e030
mov eax, dword [esi + 0x198]
add esp, 4
test eax, eax
je 0x4760c8
movzx ecx, byte [esi + 0x124]
mov edx, dword [esi + 0xe4]
push ecx
push edx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00436eab
add esp, 0x48
ret