Function at 0x11bc120
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11d2f98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x11db520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
je 0x11bc425
cmp ebx, 0xffffffff
je 0x11bc425
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x24], ecx
cmp ecx, esi
je 0x11bc425
cmp ecx, 0xffffffff
je 0x11bc425
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
xor eax, eax
lea edx, [ebp - 0x11]
push edx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
mov eax, ecx
mov byte [ebp - 0x11], 0
call fcn.011b7730
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
cmp esi, edi
je 0x11bc464
sub edi, esi
cmp edi, dword [ebp - 0x24]
jne 0x11bc464
test esi, esi
je 0x11bc425
push 0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x11bc41d
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], edx
jne 0x11bc41d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x38]
push 0x10
xor ebx, ebx
push eax
mov ecx, 0x121ba14
mov dword [ebp - 0x28], ebx
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea ecx, [ebp - 0x38]
push 0x22ff1
push ecx
mov ecx, 0x11dc780
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea edx, [ebp - 0x38]
push 0x1bf26
push edx
mov ecx, 0x11ff7c8
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea eax, [ebp - 0x38]
push 0x2b
push eax
mov ecx, 0x11dc754
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea ecx, [ebp - 0x38]
push 0x1f
push ecx
mov ecx, 0x11ff774
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea edx, [ebp - 0x38]
push 0x75
push edx
mov ecx, 0x121b760
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea eax, [ebp - 0x38]
push 0x25
push eax
mov ecx, str.S_2
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea ecx, [ebp - 0x38]
push 0x31
push ecx
mov ecx, 0x11ff794
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea edx, [ebp - 0x38]
push 0x7d
push edx
mov ecx, 0x121b800
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea eax, [ebp - 0x38]
push 0xa9
push eax
mov ecx, 0x121b880
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea ecx, [ebp - 0x38]
push 0x61
push ecx
mov ecx, 0x121b988
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea edx, [ebp - 0x38]
push 0x25
push edx
mov ecx, 0x121b9ec
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea eax, [ebp - 0x38]
push 0x5b
push eax
mov ecx, 0x121ba48
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea ecx, [ebp - 0x38]
push 0x27
push ecx
mov ecx, 0x121b92c
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea edx, [ebp - 0x38]
push 0x5b
push edx
mov ecx, 0x121baf0
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
lea eax, [ebp - 0x38]
push 0x31
push eax
mov ecx, 0x121b954
call fcn.011bc020
add esp, 8
test eax, eax
je 0x11bc41d
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x11bc41d
cmp eax, 0xffffffff
je 0x11bc41d
push ebx
lea edx, [ebp - 0x1c]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x11bc40d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], 1
cmp eax, dword [ebp - 0x1c]
je 0x11bc410
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], ebx
lea esi, [ebp - 0x38]
call fcn.011b7620
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x11bc43c
cmp ebx, 0xffffffff
je 0x11bc43c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x11bc44f
cmp eax, 0xffffffff
je 0x11bc44f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x11bc425
push esi
call fcn.011c13c0
add esp, 4
jmp 0x11bc425