Function at 0x10002c50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x13c]
mov dword [esp + 0x1c], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x138]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x10002e82
mov byte [eax + 1], bl
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 0x73
mov byte [esp + 0x11], 0x6c
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x2e
mov byte [esp + 0x14], 0x64
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], bl
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1c], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov al, 0xff
and ecx, 3
mov byte [esp + 0x2d], al
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], al
mov edx, dword [esp + 0x240]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0xfe
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov dword [esp + 0x10], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov edi, edx
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x18
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10002e90
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x10002e82
lea eax, [esp + 0x138]
push 0x100091a8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10002e74
push 2
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
add esp, 0x10
cmp edi, ebx
jbe 0x10002e4c
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
push ebx
push ebx
push esi
mov byte [edi + ebp], bl
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x30]
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x28
mov edi, 1
test eax, eax
jne 0x10002e3e
mov edi, ebx
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, ebx
jne 0x10002e6a
push 2
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x1c]
push eax
push str._s_r_n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x18
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret