Function at 0x47c580
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x20b0
call fcn.004dd740
mov eax, dword [0x500030]
xor eax, esp
mov dword [esp + 0x20ac], eax
mov eax, dword [esp + 0x20b8]
push ebx
push ebp
mov ebp, dword [esp + 0x20bc]
push esi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
xor esi, esi
push edi
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x47c5f8
lea esp, [esp]
push eax
mov ecx, 0x1fa0
push str.define__s_n
sub ecx, esi
push ecx
lea edi, [esp + esi + 0x128]
push edi
call dword [sym.imp.MSVCR90.dll__snprintf]
mov eax, edi
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c5e4
sub eax, edi
add ebx, 4
add esi, eax
mov eax, dword [ebx]
test eax, eax
jne 0x47c5c0
mov edx, 0x1fa0
push str.define_PREMUL_n
sub edx, esi
push edx
lea eax, [esp + esi + 0x124]
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
mov esi, dword [sym.imp.MSVCR90.dll_strncat]
push 0x103
lea ecx, [esp + 0x28]
push str.data_
push ecx
mov byte [esp + 0x30], 0
call esi
lea eax, [esp + 0x30]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c640
sub eax, edx
mov edx, 0x104
sub edx, eax
cmp edx, 1
jbe 0x47c66c
mov edx, dword [esp + 0x14]
mov ecx, 0x103
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c673
sub eax, edx
mov ecx, 0x104
sub ecx, eax
cmp ecx, 1
jbe 0x47c69f
mov edx, 0x103
sub edx, eax
push edx
lea eax, [esp + 0x1c]
push str..vert
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x4f0a88
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x47c6fc
mov ebx, dword [sym.imp.MSVCR90.dll_ftell]
push esi
call ebx
push 2
push 0
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_fseek]
push esi
call ebx
push 0
push edi
push esi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_fseek]
lea edx, [ebx + 1]
push edx
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 0x28
mov edi, eax
push esi
test edi, edi
jne 0x47c703
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x47c970
push ebx
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fread]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
lea eax, [esp + 0x11c]
push eax
push edi
mov byte [ebx + edi], 0
call fcn.0047c460
mov ebx, dword [sym.imp.MSVCR90.dll_free]
push edi
mov dword [esp + 0x1c], eax
call ebx
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x47c6fc
push 0x8b31
call dword [0x501144]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov dword [ebp], eax
call dword [0x5011ac]
mov edx, dword [ebp]
push edx
call dword [0x50113c]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edi, dword [ebp]
mov dword [esp + 0x14], 0
call fcn.0047caf0
mov esi, dword [sym.imp.MSVCR90.dll_strncat]
push 0x103
lea ecx, [esp + 0x20]
push str.data_
push ecx
mov byte [esp + 0x28], 0
call esi
lea eax, [esp + 0x28]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c7a5
sub eax, edx
mov edx, 0x104
sub edx, eax
cmp edx, 1
jbe 0x47c7d1
mov edx, dword [esp + 0x14]
mov ecx, 0x103
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c7d8
sub eax, edx
mov ecx, 0x104
sub ecx, eax
cmp ecx, 1
jbe 0x47c804
mov edx, 0x103
sub edx, eax
push edx
lea eax, [esp + 0x1c]
push str..frag
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x4f0a88
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
test eax, eax
je 0x47c6fc
mov esi, eax
call fcn.0047cba0
mov esi, eax
test esi, esi
je 0x47c6fc
lea edx, [esp + 0x11c]
push edx
push esi
call fcn.0047c460
push esi
mov dword [esp + 0x1c], eax
call ebx
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x47c6fc
push 0x8b30
call dword [0x501144]
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov dword [ebp + 4], eax
call dword [0x5011ac]
mov edx, dword [ebp + 4]
push edx
call dword [0x50113c]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov edi, dword [ebp + 4]
add esp, 4
mov dword [esp + 0x10], 0
call fcn.0047caf0
call dword [0x501140]
mov ecx, dword [ebp]
push ecx
push eax
mov dword [ebp + 8], eax
call dword [0x501130]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [0x501130]
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5011a8]
mov edi, dword [ebp + 8]
call fcn.0047caf0
mov edx, dword [ebp + 8]
push str.texunit0
push edx
call dword [0x501184]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
push str.texunit1
push eax
call dword [0x501184]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
push str.mask
push ecx
call dword [0x501184]
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 8]
push 0x4f3ec0
push edx
call dword [0x501184]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 8]
push 0x4f8a80
push eax
call dword [0x501184]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 8]
push str.invertall
push ecx
call dword [0x501184]
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 8]
push str.colorbal
push edx
call dword [0x501184]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 8]
push str.texsize
push eax
call dword [0x501184]
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp + 8]
push str.src_alphamul
push ecx
call dword [0x501184]
mov dword [ebp + 0x2c], eax
mov eax, 1
mov ecx, dword [esp + 0x20bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc814
add esp, 0x20b0
ret