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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [0x9e6ad8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.00430485
mov esi, eax
call fcn.0041decd
cmp dword [ebp + 8], edi
jne 0x41d9ae
mov dword [ebp + 8], 0x466068
push edi
mov ebx, pe_nt_image_headers32
push ebx
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov dword [esi + 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41da13
push 0
push ebx
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41da03
push 0
push ebx
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call edi
mov dword [esi], eax
cmp dword [esi], 0xffffffff
mov dword [esi + 0xc], 1
je 0x41dc78
xor edi, edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x2c], eax
cmp dword [ebp - 8], 3
jl 0x41da7a
push edi
lea eax, [ebp - 0x10]
push eax
push 3
lea eax, [ebp - 4]
push eax
push dword [esi]
call ebx
cmp dword [ebp - 0x10], 3
jne 0x41da6f
push 3
lea eax, [ebp - 4]
push 0x466090
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x41da6f
mov dword [esi + 0x18], 0xfde9
sub dword [ebp - 8], 3
jmp 0x41da7a
push edi
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
cmp eax, edi
jle 0x41db2f
add eax, 2
push eax
push edi
push dword [0x9e55a0]
cmp dword [esi + 0x18], edi
jne 0x41db0f
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x41db2f
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 2]
push eax
push edi
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x41db2f
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 8]
shl eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push dword [esi + 0x10]
call fcn.00431440
push dword [ebp + 8]
mov dword [esi + 0x18], 0xfde9
push edi
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41db2f
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x41db2f
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 8]
push eax
push dword [esi]
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x41dcb6
mov edx, dword [ebp - 8]
xor ecx, ecx
mov word [eax + edx], cx
mov edi, dword [esi + 0x10]
mov eax, dword [ebp - 8]
add eax, edi
mov dword [esi + 0x14], eax
mov bl, 0xa
cmp edi, eax
jae 0x41dcb6
mov al, byte [edi]
cmp al, 0x20
je 0x41db62
cmp al, 9
jne 0x41db65
inc edi
jmp 0x41db58
mov al, byte [edi]
cmp al, 0x3b
jne 0x41dba6
inc edi
cmp byte [edi], 0x20
jne 0x41db72
inc edi
push edi
push 2
push dword [ebp - 0xc]
lea eax, [esi + 0x1c]
push eax
call fcn.0041d952
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x41db9c
mov al, byte [edi]
cmp al, bl
je 0x41dc5f
cmp al, 0xd
je 0x41dc5f
inc edi
cmp byte [edi], 0
jne 0x41db89
jmp 0x41dc5f
cmp al, 0x5b
jne 0x41dbf5
inc edi
push edi
push 1
push dword [ebp - 0xc]
lea eax, [esi + 0x1c]
push eax
call fcn.0041d952
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x41dbd1
mov al, byte [edi]
cmp al, 0x5d
je 0x41dbdf
cmp al, bl
je 0x41dbd6
cmp al, 0xd
je 0x41dbd6
inc edi
cmp byte [edi], 0
jne 0x41dbc2
cmp byte [edi], 0x5d
jne 0x41dc5f
mov byte [edi], 0
jmp 0x41dbec
cmp al, bl
je 0x41dc62
cmp al, 0xd
je 0x41dc63
inc edi
mov al, byte [edi]
test al, al
jne 0x41dbe4
jmp 0x41dc63
cmp al, bl
je 0x41dc63
cmp al, 0xd
je 0x41dc63
mov edx, edi
jmp 0x41dc10
cmp al, 0x3d
je 0x41dc14
cmp al, 0xd
je 0x41dc14
cmp al, bl
je 0x41dc14
inc edi
mov al, byte [edi]
test al, al
jne 0x41dc01
lea eax, [edi - 1]
jmp 0x41dc26
mov cl, byte [eax]
cmp cl, 0x20
je 0x41dc25
cmp cl, 9
jne 0x41dc2a
dec eax
cmp eax, edx
ja 0x41dc19
mov byte [eax + 1], 0
inc edi
mov al, byte [edi]
cmp al, 0x20
je 0x41dc2e
cmp al, 9
je 0x41dc2e
push edi
push edx
push dword [ebp - 0xc]
lea eax, [esi + 0x1c]
push eax
call fcn.0041d952
add esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x41dc5a
mov al, byte [edi]
cmp al, bl
je 0x41dc5f
cmp al, 0xd
je 0x41dc5f
inc edi
cmp byte [edi], 0
jne 0x41dc4f
mov byte [edi], 0
inc edi
mov al, byte [edi]
cmp al, bl
je 0x41dc62
cmp al, 0xd
je 0x41dc62
cmp edi, dword [esi + 0x14]
jb 0x41db58
jmp 0x41dcb6
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
and dword [esi], 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], 0xfde9
call sub.MSVCRT.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
push dword [0x9e55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 4], eax
test eax, eax
je 0x41dcb6
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebx
leave
ret 8