Function at 0x418eb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7b5ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1dc]
mov ebx, ecx
xor esi, esi
lea ecx, [esp + 0x3c]
mov al, byte [edi]
push esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], al
call fcn.00404e60
mov ecx, dword [0x7e565c]
push ecx
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.00404c60
mov dl, byte [esp + 0x13]
mov dword [esp + 0x1d4], esi
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
call fcn.00404e60
mov eax, dword [esp + 0x44]
mov byte [esp + 0x1d4], 1
cmp eax, esi
je 0x418f4a
cmp dword [esp + 0x40], esi
je 0x418f3e
lea ecx, [esp + 0x3c]
call fcn.0040b450
mov eax, dword [esp + 0x40]
jmp 0x418f43
mov eax, 0x7e5658
push eax
call dword [sym.imp.user32.dll_CharLowerA]
mov eax, dword [0x8b1594]
mov ecx, dword [0x8b1598]
cmp eax, esi
jne 0x418f5e
mov eax, 0x7e5658
push ecx
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.00428220
cmp eax, esi
jl 0x418fb8
mov ecx, dword [0x7e565c]
mov eax, dword [0x8b1598]
push ecx
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.0040b2a0
mov ecx, dword [0x7e565c]
mov byte [esp + 0x1d4], 2
push ecx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404c60
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 1
call fcn.00404e60
jmp 0x418fce
mov edx, dword [0x7e565c]
lea eax, [esp + 0x3c]
push edx
push esi
push eax
lea ecx, [esp + 0x58]
call fcn.00404c60
cmp dword [esp + 0x54], esi
jbe 0x41912a
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x60], cl
lea ecx, [esp + 0x60]
call fcn.00404e60
push 1
lea edx, [esp + 0x17]
push esi
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 3
mov byte [esp + 0x1f], 0x3a
call fcn.00428220
cmp eax, 0xffffffff
jne 0x419088
or ecx, eax
mov edi, 0x82b660
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x82b660
lea ecx, [esp + 0x58]
call fcn.00428220
cmp eax, 0xffffffff
jne 0x419088
or ecx, eax
mov edi, 0x82b65c
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x82b65c
lea ecx, [esp + 0x58]
call fcn.00428220
cmp eax, 0xffffffff
jne 0x419088
cmp dword [0x8b1598], esi
jbe 0x419070
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x5c]
push eax
push esi
push 0x8b1590
call fcn.00404c60
mov ecx, dword [0x7e565c]
lea edx, [esp + 0x4c]
push ecx
push esi
push edx
lea ecx, [esp + 0x68]
call fcn.004147b0
jmp 0x41909d
mov eax, dword [0x7e565c]
lea ecx, [esp + 0x4c]
push eax
push esi
push ecx
lea ecx, [esp + 0x68]
call fcn.00404c60
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], esi
cmp eax, esi
jne 0x4190ae
mov eax, 0x7e5658
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41915a
lea edx, [esp + 0x5c]
push 0x82b664
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0040b4d0
add esp, 0xc
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1d4], 4
cmp eax, esi
jne 0x4190fb
mov eax, 0x7e5658
push eax
call fcn.0045afa0
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d4], 3
push 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x1d8], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0
call fcn.00404e60
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.00404e60
xor al, al
jmp 0x4195bf
push ebp
mov ecx, ebx
call fcn.0044a7c0
mov cl, byte [0x870c08]
xor eax, eax
mov byte [esp + 0x70], cl
mov ecx, 0x3f
lea edi, [esp + 0x71]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x20]
push esi
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x74]
push 4
push eax
push ebp
mov dword [esp + 0x30], esi
call ebx
lea ecx, [esp + 0x20]
push esi
push ecx
lea edx, [esp + 0x178]
push 0x5c
push edx
push ebp
call ebx
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, esi
jle 0x419306
lea edx, [esp + 0x20]
push esi
push edx
push eax
lea eax, [esp + 0x7c]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
push esi
mov byte [esp + 0x28], dl
mov byte [esp + ecx + 0x74], 0
lea ecx, [esp + 0x28]
call fcn.00404e60
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x20], edi
call fcn.00401b40
test al, al
je 0x419239
mov ecx, edi
mov edi, dword [esp + 0x28]
mov eax, ecx
lea esi, [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00405070
xor esi, esi
push 0x8b1600
mov byte [esp + 0x1d8], 5
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esp + 0x2c], esi
jne 0x419264
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0x8b1600
call esi
jmp 0x4192f1
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, 0x8b15e0
call fcn.00428540
mov ecx, dword [0x8b15e4]
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4192e0
add eax, 0x1c
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, 0x8b15f0
call fcn.0040df50
mov eax, dword [0x8b15f4]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x4192e0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x1c]
cmp ecx, esi
je 0x4192b8
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, 0x8b15e0
call fcn.00428520
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x8b15f0
call fcn.0040d260
push 0x8b1600
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 3
call fcn.00404e60
jmp 0x41930c
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x38]
cmp dword [edx + 0xe4], 1
jne 0x419464
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x419464
lea edx, [esp + 0x20]
push 0
push edx
push eax
lea eax, [esp + 0x7c]
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
push 0
mov byte [esp + 0x28], dl
mov byte [esp + ecx + 0x74], 0
lea ecx, [esp + 0x28]
call fcn.00404e60
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x40], edi
call fcn.00401b40
test al, al
je 0x4193b4
mov ecx, edi
mov edi, dword [esp + 0x28]
mov eax, ecx
lea esi, [esp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00405070
mov esi, dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0x8b1600
mov byte [esp + 0x1d8], 6
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41944a
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, 0x8b15e0
call fcn.00428540
mov eax, dword [0x8b15e4]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x41944a
add ecx, 0x1c
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x8b15f0
call fcn.0040df50
mov eax, dword [0x8b15f4]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x41944a
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x419422
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, 0x8b15e0
call fcn.00428520
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x8b15f0
call fcn.0040d260
push 0x8b1600
call esi
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 3
call fcn.00404e60
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x24]
push 4
push eax
push ebp
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x41957a
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x78]
push eax
push edx
push ebp
call ebx
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x24], cl
push 0
lea ecx, [esp + 0x28]
mov byte [esp + eax + 0x74], 0
call fcn.00404e60
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00404eb0
push 0x8b1468
mov byte [esp + 0x1d8], 7
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x419560
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, 0x8b1448
call fcn.0042d1f0
mov eax, dword [0x8b144c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x419560
add ecx, 0x1c
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x8b1458
call fcn.0042d940
mov eax, dword [0x8b145c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x419560
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x419538
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x8b1448
call fcn.00429270
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, 0x8b1458
call fcn.00429290
push 0x8b1468
call esi
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1d8], 3
call fcn.00404e60
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x1d8], 1
call fcn.00404e60
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d8], 0
call fcn.00404e60
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.00404e60
mov al, 1
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c8
ret 4