Function at 0x475bb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
lea eax, [esp + 0x34]
mov esi, ecx
push eax
push esi
call sym.convertifd.exe_UtGetExt
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
call sym.convertifd.exe_FindLogoFileNoMsg
add esp, 0x14
test eax, eax
je 0x475c21
lea eax, [esp + 0x40]
push 0x581e84
push eax
call fcn.00515a07
mov esi, eax
add esp, 8
test esi, esi
je 0x475c21
push esi
push 1
lea ecx, [esp + 0x2c]
push 0xd
push ecx
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
je 0x475c3a
push esi
call fcn.005158c7
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00511a80
add esp, 0x144
ret
push edi
push 3
lea edx, [esp + 0x2f]
push 0x581e80
push edx
call fcn.00513bae
add esp, 0xc
test eax, eax
jne 0x475c99
test byte [esp + 0x32], 0x80
je 0x475c76
push eax
movzx eax, byte [esp + 0x37]
lea eax, [eax + eax*2 + 0xd]
push eax
push esi
call fcn.00515def
add esp, 0xc
test eax, eax
je 0x475daf
push esi
call fcn.005158c7
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00511a80
add esp, 0x144
ret
movzx ecx, byte [esp + 0x32]
and ecx, 7
add ecx, 1
mov eax, 1
shl eax, cl
push 0
or edi, 0xffffffff
lea ecx, [eax + eax*2 + 0xd]
push ecx
push esi
call fcn.00515def
add esp, 0xc
test eax, eax
push esi
jne 0x475c77
push 1
lea edx, [esp + 0x14]
push 3
push edx
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
jne 0x475c76
lea esp, [esp]
mov al, byte [esp + 0xc]
cmp al, 0x21
jne 0x475d47
cmp byte [esp + 0xd], 0xf9
jne 0x475d17
push esi
push 1
lea eax, [esp + 0x18]
push 5
push eax
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
jne 0x475c76
test byte [esp + 0x10], al
je 0x475d2b
movzx edi, byte [esp + 0x13]
jmp 0x475d2b
movzx ecx, byte [esp + 0xe]
push 1
add ecx, 1
push ecx
push esi
call fcn.00515def
add esp, 0xc
push esi
push 1
lea edx, [esp + 0x14]
push 3
push edx
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
je 0x475ce0
jmp 0x475c76
test edi, edi
jl 0x475c76
cmp al, 0x2c
jne 0x475c76
push 1
push 0xfffffffffffffffd
push esi
call fcn.00515def
push esi
push 1
lea eax, [esp + 0x30]
push 0xa
push eax
call fcn.00515cb6
add esp, 0x1c
cmp eax, 1
jne 0x475c76
test byte [esp + 0x25], al
je 0x475d8c
push eax
lea ecx, [edi + edi*2]
push ecx
jmp 0x475c65
test byte [esp + 0x32], 0x80
je 0x475c76
push 0
lea edx, [edi + edi*2 + 0xd]
push edx
push esi
call fcn.00515def
add esp, 0xc
test eax, eax
jne 0x475c76
push esi
push 1
lea eax, [esp + 0x11]
push 1
push eax
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
push esi
jne 0x475c77
push eax
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
push esi
jne 0x475c77
push eax
push eax
lea edx, [esp + 0x17]
push edx
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
push esi
jne 0x475c77
call fcn.005158c7
movzx edx, byte [esp + 0xd]
xor ecx, ecx
mov ch, byte [esp + 0xf]
lea eax, [esp + 0x1c]
push eax
mov cl, byte [esp + 0x12]
shl ecx, 8
or ecx, edx
push ecx
push sym.convertifd.exe_i_ifd
call sym.convertifd.exe_GetColourHandle
mov ecx, dword [esp + 0x28]
add esp, 0x10
test ecx, ecx
je 0x475e3c
push ecx
call sym.convertifd.exe_IpMessage
jmp 0x475c7c
test eax, eax
jne 0x475c82
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00511a80
add esp, 0x144
ret