Function at 0x472520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x174
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], ebx
xor eax, eax
jmp 0x472540
mov cl, byte [eax + 0x263dc20]
mov byte [esp + eax + 0x7c], cl
add eax, 1
test cl, cl
jne 0x472540
mov eax, dword [esp + 0x184]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x472560
lea edi, [esp + 0x7c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x472572
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x7c]
call fcn.00408370
cmp eax, 0xffffffff
jne 0x4725aa
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x174
ret
push ebp
lea eax, [esp + 0x80]
push 0x585808
push eax
call fcn.00563b54
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x4728f1
push ebp
call fcn.00563ee9
add esp, 4
cmp eax, 0x80000
jge 0x47261b
lea ebx, [ebx]
push ebp
push 1
lea ecx, [esp + 0x30]
push 0x10
push ecx
call fcn.00566160
add esp, 0x10
cmp eax, 1
jne 0x47261b
mov edi, str.RESET
lea esi, [esp + 0x28]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x47261b
push ebp
call fcn.00563ee9
add esp, 4
cmp eax, 0x80000
jl 0x4725e0
mov edi, str.RESET
lea esi, [esp + 0x28]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4728e8
mov edx, dword [esp + 0x34]
cmp edx, ebx
je 0x4728e8
lea eax, [esp + 0x28]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x472646
sub eax, esi
mov ebx, dword [esp + 0x18c]
je 0x472865
jmp 0x472664
mov edx, dword [esp + 0x34]
mov edi, str.ROMVER
lea esi, [esp + 0x28]
mov ecx, 7
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x472822
push ebp
call fcn.00563ee9
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebp
mov esi, eax
call fcn.00563fde
push ebp
push 1
lea edx, [esp + 0x58]
push 0xe
push edx
call fcn.00566160
add esp, 0x20
test eax, eax
je 0x472861
push 0
push esi
push ebp
call fcn.00563fde
movsx eax, byte [esp + 0x50]
lea ecx, [eax - 0x41]
add esp, 0xc
cmp ecx, 0x17
ja case.0x4726cf.66
movzx ecx, byte [ecx + 0x472924]
jmp dword [ecx*4 + 0x472900]
lea edx, [esp + 0x14]
push str.T10K
push edx
call fcn.00563254
add esp, 8
jmp 0x47278f
lea eax, [esp + 0x14]
push str.Test
push eax
call fcn.00563254
add esp, 8
jmp 0x47278f
lea ecx, [esp + 0x14]
push 0x58cb48
push ecx
call fcn.00563254
add esp, 8
jmp 0x47278f
lea edx, [esp + 0x14]
push str.USA
push edx
call fcn.00563254
add esp, 8
jmp 0x47278f
lea eax, [esp + 0x14]
push str.Europe
push eax
call fcn.00563254
add esp, 8
jmp 0x47278f
lea ecx, [esp + 0x14]
push str.HK
push ecx
call fcn.00563254
add esp, 8
jmp 0x47278f
lea edx, [esp + 0x14]
push str.Free
push edx
call fcn.00563254
add esp, 8
jmp 0x47278f
lea eax, [esp + 0x14]
push 0x58cb20
push eax
call fcn.00563254
add esp, 8
jmp 0x47278f
push eax
lea ecx, [esp + 0x18]
push str._c
push ecx
call fcn.00563254
add esp, 0xc
mov al, byte [esp + 0x45]
cmp al, 0x43
jne 0x47279e
mov eax, str.Console
jmp 0x4727ac
cmp al, 0x44
mov eax, str.Devel
je 0x4727ac
mov eax, 0x5823d3
push eax
lea edx, [esp + 0x18]
push edx
push str._s_vXX.XX_XX_XX_XXXX___s
push ebx
call fcn.00563254
push 2
lea eax, [esp + 0x54]
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.00566d40
push 2
lea edx, [esp + 0x62]
push edx
lea eax, [ebx + 0xb]
push eax
call fcn.00566d40
push 2
lea ecx, [esp + 0x78]
push ecx
lea edx, [ebx + 0xe]
push edx
call fcn.00566d40
push 2
lea eax, [esp + 0x82]
push eax
lea ecx, [ebx + 0x11]
push ecx
call fcn.00566d40
add esp, 0x40
push 4
lea edx, [esp + 0x4a]
push edx
lea eax, [ebx + 0x14]
push eax
call fcn.00566d40
mov edx, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x24], 1
test dl, 0xf
je 0x47282d
add edx, 0x10
and edx, 0xfffffff0
add dword [esp + 0x10], edx
push ebp
push 1
lea ecx, [esp + 0x30]
push 0x10
push ecx
call fcn.00566160
add esp, 0x10
test eax, eax
je 0x472861
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x472850
sub eax, edx
jne 0x472660
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
lea eax, [edx + 0x10]
and eax, 0xfffffff0
sub edx, eax
push ebp
add esi, edx
call fcn.00563a14
add esp, 4
cmp dword [esp + 0x24], 0
je 0x4728f1
mov eax, dword [esp + 0x64]
cmp eax, esi
jge 0x4728d8
imul eax, eax, 0x64
cdq
idiv esi
lea ecx, [esp + 0x38]
push eax
push str.__d__
push ecx
call fcn.00563254
lea eax, [esp + 0x44]
add esp, 0xc
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4728b0
sub eax, esi
add ebx, 0xffffffff
mov edi, ebx
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4728c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x174
ret
push ebp
call fcn.00563a14
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x174
ret