Function at 0x474ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x438
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x2c]
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edx, dword [esp + 0x44c]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ebx
push 0x80
push 3
push ebx
push ebx
lea edx, [esp + 0x40]
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x474f9a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
mov dword [esp + 0x20], ebp
call fcn.0048ac32
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x24], edi
je 0x474f9a
lea eax, [esp + 0x28]
push ebx
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
cmp ebx, ebp
mov dword [esp + 0x10], edx
jae 0x474f91
mov al, byte [ebx + edi]
cmp al, 0x3b
je 0x474fa5
cmp al, 0xd
je 0x474fa5
mov byte [esp + ecx + 0x2c], al
inc ebx
inc ecx
cmp ebx, ebp
jb 0x474f7c
push edi
call fcn.0048ace4
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x438
ret
cmp ebx, ebp
jae 0x474f91
cmp edx, 5
mov byte [esp + ecx + 0x2c], 0
ja case.default.0x474fb3
jmp dword [edx*4 + 0x475140]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0048c4a4
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov byte [esp + 0x338], al
jmp case.0x474fb3.0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, eax
jge 0x47500c
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004596c0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + esi*4 + 0x230], ecx
inc esi
mov dword [esp + 0x14], esi
jmp case.0x474fb3.0
xor eax, eax
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x130], cl
inc eax
test cl, cl
jne 0x47500e
mov al, byte [ebx + edi]
cmp al, 0x3b
jne 0x475030
mov edx, dword [esp + 0x10]
inc ebx
inc edx
jmp 0x474f72
cmp al, 0xd
je 0x47503e
mov edx, dword [esp + 0x10]
inc edx
jmp 0x474f72
mov ecx, dword [esp + 0x450]
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
cmp edi, eax
mov dword [esp + 0x10], eax
jge 0x475129
mov eax, edi
shl eax, 5
add eax, edi
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x28]
lea ebp, [eax + edx*8]
lea esi, [esp + 0x130]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x475093
test cl, cl
je 0x47508f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x475093
add eax, 2
add esi, 2
test cl, cl
jne 0x47506f
xor eax, eax
jmp 0x475098
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4750ad
mov eax, dword [esp + 0x10]
inc edi
add ebp, 0x318
cmp edi, eax
jl 0x475066
jmp 0x475125
mov ecx, dword [esp + 0x338]
mov eax, 0
and ecx, 0xff
jle 0x4750ef
mov edx, edi
shl edx, 5
add edx, edi
lea edx, [edx + edx*2]
lea edx, [edx*8 + 0x100]
mov esi, dword [esp + 0x450]
mov ebp, dword [esp + eax*4 + 0x230]
inc eax
add edx, 4
mov esi, dword [esi + 0x28]
cmp eax, ecx
mov dword [edx + esi - 4], ebp
jl 0x4750d2
mov esi, dword [esp + 0x450]
mov eax, edi
shl eax, 5
mov ecx, dword [esi + 0x28]
mov dl, byte [esp + 0x338]
add eax, edi
lea eax, [eax + eax*2]
shl eax, 3
mov byte [ecx + eax + 0x208], dl
mov ecx, dword [esi + 0x28]
mov dl, byte [esp + 0x339]
mov byte [ecx + eax + 0x209], dl
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add ebx, 2
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jmp 0x474f70