Function at 0x499ba8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x153c
call fcn.004a98b0
push ebx
push esi
push edi
mov eax, dword [0x4dd52c]
push 7
pop ecx
mov esi, 0x413550
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x39
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x1ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
pop ecx
push 0x3a
xor eax, eax
mov esi, 0x413534
lea edi, [ebp - 0x310]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea edi, [ebp - 0x2f4]
rep stosd dword es:[edi], eax
mov esi, 0x414620
lea edi, [ebp - 0x518]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3c
pop ecx
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x506]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 5
pop ecx
push 0x3c
mov esi, 0x413520
lea edi, [ebp - 0x414]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop ecx
lea edi, [ebp - 0x400]
rep stosd dword es:[edi], eax
push 0x40
mov byte [ebp - 0x108], al
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
xor edx, edx
xor esi, esi
stosw word es:[edi], ax
inc esi
cmp dword [ebp + 0x14], esi
mov dword [ebp - 0x1530], edx
mov dword [ebp - 0x1534], edx
stosb byte es:[edi], al
mov dword [ebp - 0x1538], edx
mov dword [ebp - 0x152c], edx
jne 0x499caf
cmp dword [ebp + 0x10], esi
jne 0x499c91
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x1534], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499c88
jmp 0x499ca7
lea eax, [ebp - 0x310]
mov dword [ebp - 0x1534], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499ca0
sub eax, edx
mov dword [ebp - 0x1530], eax
cmp word [ebx + 0x1bf2a], si
jne 0x499d16
cmp dword [ebp + 0x14], esi
movsx eax, word [ebp + 0xc]
push eax
jne 0x499ce1
push dword [ebp - 0x1534]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
jmp 0x499cf8
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1534], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499d07
sub eax, edx
mov dword [ebp - 0x1530], eax
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x153c], eax
je 0x499e11
push esi
push esi
push esi
push dword [ebx + 0x8148]
call fcn.004809d9
push esi
lea eax, [ebp - 0x1538]
push eax
push dword [ebx + 0x3eb8]
push dword [ebp - 0x153c]
push dword [ebx + 0x8148]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1538], 9
jb 0x499e05
mov edx, dword [ebp - 0x1530]
mov esi, dword [ebp - 0x1534]
mov ecx, edx
mov eax, ecx
shr ecx, 2
mov dword [ebp - 0x152c], 8
lea edi, [ebp - 0x1518]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x153c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0xbdd]
lea edi, [ebp + edx - 0x1518]
mov edx, ecx
lea esi, [eax + 0xbe1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0xbdd]
add eax, dword [ebp - 0x1530]
mov dword [ebp - 0x151c], eax
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 0x8148]
call fcn.004809d9
lea eax, [ebp - 0x152c]
push eax
push 1
lea eax, [ebp - 0x1538]
push eax
push dword [ebx + 0x3eb8]
push dword [ebx + 0x8148]
push ebx
call fcn.00499356
push dword [ebp - 0x153c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x10