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

Disassembly:
push 0xffffffffffffffff
push 0x41a407
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x18], ebp
call fcn.00409e50
mov ecx, ebp
call fcn.00406070
lea eax, [esp + 0x40]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp + 0x14]
lea esi, [ebp + 0x14]
push 0
mov ecx, esi
call dword [edx + 4]
lea eax, [esp + 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x38]
call fcn.00402630
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x154], 0
call fcn.00402460
mov edi, dword [esi + 8]
mov dword [esp + 0x14c], 0xffffffff
dec edi
js 0x405de3
mov bl, byte [0x41f06c]
test bl, bl
je 0x405de0
mov ecx, dword [esi + 4]
mov al, bl
mov dl, byte [ecx + edi]
mov ecx, 0x41f06c
cmp al, dl
je 0x405de6
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x405dd4
dec edi
jns 0x405dc3
or edi, 0xffffffff
inc edi
lea edx, [esp + 0x30]
push edi
push edx
mov ecx, esi
call fcn.00409300
mov esi, eax
mov eax, dword [ebp + 0x24]
lea edi, [ebp + 0x24]
push 0
mov ecx, edi
mov dword [esp + 0x150], 1
call dword [eax + 4]
mov ebx, dword [esi + 8]
mov ecx, dword [edi + 8]
mov esi, dword [esi + 4]
push ebx
push ecx
mov ecx, edi
call fcn.004027d0
mov ecx, ebx
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x30], 0x41b238
lea ecx, [esp + 0x30]
mov dword [esp + 0x14c], 2
call fcn.00405b10
test eax, eax
je 0x405e5b
push eax
call fcn.0040c2f0
add esp, 4
or ecx, 0xffffffff
lea edi, [esp + 0x40]
xor eax, eax
mov dword [esp + 0x14c], ecx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x40]
push 0x2e
push eax
lea edi, [esp + ecx + 0x48]
call fcn.0040ddc0
lea ecx, [esp + 0x48]
push 0x2f
push ecx
mov esi, eax
call fcn.0040ddc0
add esp, 0x10
test esi, esi
je 0x405e9d
test eax, eax
je 0x405e9f
cmp eax, esi
jbe 0x405e9f
mov esi, edi
lea edx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], str..cfg
mov dword [esp + 0x34], str..config
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
xor ebp, ebp
lea ebx, [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edi, dword [ebx]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x40]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409720
add esp, 4
test eax, eax
je 0x405f2d
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x54]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405f58
inc ebp
add ebx, 4
cmp ebp, 2
jb 0x405ed7
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jae 0x406000
jmp 0x405ec7
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call fcn.00402500
mov dword [esp + 0x20], 0x41b248
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push esi
mov dword [esp + 0x154], 3
call edi
mov edx, dword [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004027d0
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call edi
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.00409f00
add esp, 8
mov dword [esp + 0x20], 0x41b238
lea ecx, [esp + 0x20]
mov dword [esp + 0x14c], 4
call fcn.00405b10
test eax, eax
je 0x405feb
push eax
call fcn.0040c2f0
add esp, 4
mov dword [esp + 0x14c], 0xffffffff
mov dword [esp + 0x20], 0x41b27c
jmp 0x406004
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 8]
test esi, esi
jle 0x406041
mov edx, dword [edi]
lea eax, [esi + 2]
push eax
mov ecx, edi
call dword [edx + 4]
cmp esi, esi
jge 0x406032
mov ecx, dword [edi + 4]
mov edx, esi
sub edx, esi
lea eax, [ecx + esi]
push edx
push eax
add eax, 2
push eax
call fcn.0040bfb0
add esp, 0xc
mov eax, dword [edi + 4]
mov cx, word [0x41f324]
add eax, esi
mov word [eax], cx
mov edx, dword [edi + 8]
mov ecx, edi
mov dword [edi + 0x10], edx
call fcn.00409740
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret