Function at 0x437638
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x43765b
add esp, 0xfffffff0
call fcn.00402ab0
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4378c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xb], 1
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov esi, eax
test esi, esi
jle 0x43788c
push 0
push 0
push 0
push 0x8000002
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], edi
test edi, edi
je 0x43788c
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x43788c
cmp dword [eax], 0x4034b50
jne 0x43788c
xor edx, edx
push ebp
push 0x437882
push dword fs:[edx]
mov dword fs:[edx], esp
sub esi, 2
mov edx, eax
add edx, esi
movzx edx, word [edx]
sub esi, edx
add eax, esi
sub eax, 0xa
movzx ebx, word [eax]
mov eax, ebx
shl eax, 4
call fcn.00653710
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add esi, dword [eax + 0x34]
sub esi, 4
mov esi, dword [esi]
mov edi, ebx
dec edi
test edi, edi
jl 0x437878
inc edi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
add ebx, esi
cmp dword [ebx], 0x2014b50
jne 0x437878
test byte [ebx + 8], 1
jne 0x437878
mov ax, word [ebx + 0xa]
test ax, ax
je 0x43775c
cmp ax, 8
jne 0x437878
mov eax, dword [ebx + 0x2a]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + 0x1a]
add eax, 0x1e
push eax
lea eax, [ebp - 0xc]
pop edx
call fcn.00403358
lea eax, [ebp - 0x24]
push eax
mov cl, 0x5c
mov dl, 0x2f
mov eax, dword [ebp - 0xc]
call fcn.00653c98
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.0040330c
cmp dword [ebp - 0xc], 0
je 0x437859
mov eax, dword [ebp - 0xc]
call fcn.00653ba4
cmp al, 0x5c
je 0x437859
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x20]
shl edx, 4
add eax, edx
mov dword [ebp - 0x18], eax
cmp word [ebx + 0xa], 0
setne al
mov edx, dword [ebp - 0x18]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
add eax, dword [ebp - 0x1c]
add eax, 0x1e
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x1a]
add eax, edx
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x1c]
add eax, edx
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 0x18]
mov dword [edx + 8], eax
test byte [ebx + 9], 8
jne 0x437832
mov eax, dword [ebp - 0xc]
call fcn.0040351c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00403dd4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_OemToCharW
jmp 0x43783d
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00654c74
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
call fcn.00403b14
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0064f61c
movzx eax, word [ebx + 0x1c]
add eax, 0x2e
movzx edx, word [ebx + 0x1e]
add eax, edx
movzx edx, word [ebx + 0x20]
add eax, edx
add esi, eax
inc dword [ebp - 0x20]
dec edi
jne 0x43772b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43788c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00650140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4378cb
lea eax, [ebp - 0x28]
call fcn.00403880
lea eax, [ebp - 0x24]
call fcn.00403274
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
ret