Function at 0x4121d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
mov ebx, ecx
mov dword [ebp - 8], 0
push esi
push edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x412203
push esi
call fcn.0040dba0
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 8], edi
call fcn.00424040
add esp, 0x10
mov ecx, dword [ebx + 0x34]
cmp ecx, 0xffffffff
je 0x412212
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x4c], esi
call fcn.0040f350
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4123e0
imul esi, eax, 0x34
mov ecx, edi
mov eax, dword [edi]
add esi, dword [ebx + 0x10]
call dword [eax + 4]
sub eax, dword [ebp - 0x4c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x4122a5
cmp dword [ebx + 0x34], 0xffffffff
je 0x4122a5
push eax
call fcn.0040dba0
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4122a5
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x44]
push 0
push ecx
push eax
push dword [ebx + 0x34]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x412290
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0x14]
push dword [esi + 0x1c]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi + 0x14], 0
jle 0x4123c6
cmp dword [esi + 0x1c], 0
je 0x4123c6
xor eax, eax
mov dword [ebp - 0x30], 0x4034b50
cmp dword [esi + 0x30], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov eax, 0xa
mov word [ebp - 0x2c], ax
jne 0x4122f0
mov eax, 0x3f
mov word [ebp - 0x2c], ax
xor eax, eax
lea ecx, [esi + 0x10]
mov word [ebp - 0x2a], ax
mov ax, word [esi + 0x30]
mov word [ebp - 0x28], ax
xor eax, eax
mov dword [ebp - 0x26], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x22], eax
call fcn.00420910
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1e], ecx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x1a], ecx
mov ecx, eax
mov dword [ebp - 4], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412325
sub ecx, edx
cmp dword [ebx + 4], 0
mov word [ebp - 0x16], cx
jne 0x41233c
xor eax, eax
jmp 0x412356
mov eax, dword [esi + 0x20]
xor edx, edx
add eax, 0x1e
movzx ecx, cx
add eax, ecx
div dword [ebx + 4]
mov ax, word [ebx + 4]
sub ax, dx
movzx eax, ax
mov word [ebp - 0x14], ax
mov ecx, ebx
movzx eax, ax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push 0x44f8c0
push eax
push eax
call fcn.0041c4f0
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push 0x1e
push ecx
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412383
mov eax, dword [edi]
sub ecx, edx
push ecx
push dword [ebp - 4]
mov ecx, edi
call dword [eax]
push dword [ebp - 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 8]
call dword [eax]
push dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [esi + 0x1c]
call dword [eax]
cmp dword [ebx + 0x34], 0xffffffff
je 0x4123c6
push dword [esi + 0x1c]
call fcn.0040db80
add esp, 4
mov dword [esi + 0x1c], 0xffffffff
push dword [ebp - 0xc]
lea ecx, [ebx + 0xc]
call fcn.0040fea0
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x412235
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x412413
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], 0
push ecx
push 0
push eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x412413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebx + 4]
sub eax, esi
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x412443
lea esi, [ecx - 1]
dec ecx
not ecx
add esi, eax
and esi, ecx
mov ecx, esi
sub ecx, eax
je 0x412443
mov eax, dword [edi]
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax]
mov dword [ebp - 0x10], esi
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0
call fcn.0040f350
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4125ac
mov edi, edi
mov edi, dword [ebx + 0x10]
imul ecx, eax, 0x34
add edi, 0x10
add edi, ecx
mov esi, dword [edi + 4]
test esi, esi
jle 0x412592
cmp dword [edi + 0xc], 0
je 0x412592
push 0x2a
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00424040
add esp, 0xc
mov dword [ebp - 0x40], 0x2014b50
cmp dword [edi + 0x20], 0xe
mov dword [ebp - 0x3c], 0xa0014
jne 0x4124ad
mov eax, 0x3f
mov word [ebp - 0x3a], ax
xor eax, eax
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x38], ax
mov ecx, edi
mov ax, word [edi + 0x20]
mov word [ebp - 0x36], ax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
call fcn.00420910
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4124e0
mov esi, dword [ebx + 4]
sub eax, edx
mov word [ebp - 0x24], ax
test esi, esi
jne 0x4124f8
xor ecx, ecx
jmp 0x412510
movzx ecx, ax
xor edx, edx
mov eax, dword [edi + 0x10]
add ecx, 0x1e
add eax, ecx
div esi
mov ax, si
sub ax, dx
movzx ecx, ax
xor eax, eax
mov word [ebp - 0x22], cx
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x16], eax
movzx eax, cx
mov ecx, ebx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
push 0x44f8a8
push eax
push eax
call fcn.0041c4f0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0x2e
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov ecx, edi
call fcn.00420910
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412556
mov esi, dword [esi]
sub eax, edx
push eax
mov ecx, edi
call fcn.00420910
mov ecx, dword [ebp + 8]
push eax
call dword [esi]
cmp byte [ebx + 9], 0
je 0x412582
mov ecx, dword [ebp + 8]
push dword [ebp - 0x50]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax]
inc dword [ebp - 4]
cmp dword [ebx + 0x34], 0xffffffff
je 0x412592
mov dword [edi + 0xc], 0
push dword [ebp - 0xc]
lea ecx, [ebx + 0xc]
call fcn.0040fea0
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x412460
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
sub eax, dword [ebp - 0x4c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4125d9
lea esi, [ecx - 1]
dec ecx
not ecx
add esi, eax
and esi, ecx
mov ecx, esi
sub ecx, eax
je 0x4125d9
mov eax, dword [edi]
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax]
mov eax, esi
push dword [ebx + 4]
xor ecx, ecx
mov dword [ebp - 0x68], 0x6054b50
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x54], cx
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 4]
mov word [ebp - 0x60], cx
mov word [ebp - 0x5e], cx
mov ecx, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x5c], eax
xor eax, eax
cmp byte [ebx + 9], al
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
sete al
add eax, 0x31
mov dword [ebp - 0x58], ecx
push eax
push str.XZP_c__d
lea eax, [ebp - 0x34]
push 0x20
push eax
call fcn.0041bc40
add esp, 0x14
lea esi, [ebp - 0x34]
mov eax, 0x20
lea edi, [ebp - 0xe8]
mov word [ebp - 0x54], ax
mov ecx, 8
lea eax, [ebp - 0x68]
push 0x44f890
rep movsd dword es:[edi], dword [esi]
push eax
push eax
mov ecx, ebx
call fcn.0041c4f0
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push 0x16
push ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
mov eax, dword [ebx]
lea ecx, [ebp - 0xe8]
push 0x20
push ecx
mov ecx, ebx
call dword [eax]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4126a0
push eax
call fcn.0040db80
add esp, 4
mov esp, ebp
pop ebp
ret 4