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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x78
push dword [0x4d9e40]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp], eax
xor esi, esi
push 4
push 0x1000
push dword [0x4d9e60]
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov edi, eax
mov edx, dword [0x4d9e60]
mov ecx, eax
call fcn.004304fc
invalid
jmp [eax + 4]
add dword [eax], eax
add byte [edi + 0x56], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
xor ecx, ecx
dec ecx
mov eax, dword [0x4d9e50]
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x4305d8
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x4305ef
mov edx, ecx
jmp 0x430602
mov word [edi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [edi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x4305ef
mov cl, byte [eax]
test cl, cl
je 0x43061d
lea edx, [edi + edx*2]
xor esi, esi
movsx ecx, cl
mov word [edx + esi*2], cx
mov cl, byte [eax + esi + 1]
inc esi
test cl, cl
jne 0x43060d
lea ecx, [esp + 0x34]
mov edx, 0x44
call fcn.004304fc
lea ecx, [esp + 0x24]
mov edx, 0x10
call fcn.004304fc
xor esi, esi
xor eax, eax
inc eax
push esi
push 0x80
push 3
push esi
push eax
push eax
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4307b9
mov edi, eax
push esi
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
push 4
push 0x1000
push dword [0x4d9e4c]
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov ebx, eax
lea eax, [esp + 0x14]
mov dword [eax], esi
push esi
push eax
push ebp
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4307b9
mov ebp, dword [esp + 0x14]
add ebp, ebx
mov edx, dword [0x4d9e74]
lea esi, [ebx + edx]
mov eax, dword [ebx + edx]
test eax, eax
je 0x4306ba
mov ecx, dword [ebx + edx + 4]
lea edx, [edx + ebx + 8]
add dword [edx], ecx
add edx, 4
dec eax
jne 0x4306b2
mov ebx, dword [0x4d9e6c]
lea eax, [esi + ebx + 1]
push eax
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x4307b9
mov edi, eax
add esi, ebx
movsx ebx, byte [esi]
lea eax, [esi + ebx + 1]
push eax
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp], eax
test eax, eax
je 0x4307b9
add esi, ebx
movsx ebx, byte [esi]
lea eax, [esi + ebx + 1]
push eax
call edi
test eax, eax
je 0x4307b9
mov edi, eax
add esi, ebx
movsx eax, byte [esi]
lea ecx, [esi + eax]
lea edx, [esi + eax + 0xc]
mov dword [esp + 4], edx
mov esi, dword [edx - 4]
lea eax, [esi + ecx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x3c]
add edi, dword [edi + eax + 0x2c]
mov eax, dword [edx - 8]
add eax, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
mov dword [eax], 0
push eax
push 0x40
push esi
push edi
mov ebx, dword [esp + 0x10]
call ebx
mov ecx, edi
mov edx, dword [esp + 4]
push esi
call fcn.0043053c
add esp, 4
lea eax, [esp + 0x10]
push eax
push dword [eax]
push esi
push edi
call ebx
mov eax, dword [0x4d9e54]
cmp byte [eax], 0
je 0x430797
xor eax, eax
mov ecx, dword [0x4d9e54]
movsx ecx, byte [ecx + eax]
mov word [ebp + eax*2], cx
lea ecx, [eax + 1]
mov edx, dword [0x4d9e54]
cmp byte [edx + eax + 1], 0
mov eax, ecx
jne 0x430774
jmp 0x430799
xor ecx, ecx
mov word [ebp + ecx*2], 0
lea eax, [esp + 0x18]
mov dword [eax + 4], ebp
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov byte [eax + 8], 1
push eax
call dword [esp + 0x10]
add esp, 4
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret