Function at 0x100321f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x50]
push ebp
mov ebp, ecx
push 0x7530
lea ecx, [ebp + 0xd0]
mov dword [esp + 0x18], eax
call fcn.10036c40
mov dword [ebp + 0xcc], 3
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov cl, 0x20
mov dword [esp + 8], 0
call fcn.1003bad0
mov edx, dword [ebx + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100322b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100322b7
mov edx, 8
cmp dword [ebp + 0x3c], edx
jb 0x10032274
mov ecx, dword [ebp + 0x28]
jmp 0x10032277
lea ecx, [ebp + 0x28]
cmp dword [ebp + 0x58], edx
jb 0x10032281
mov eax, dword [ebp + 0x44]
jmp 0x10032284
lea eax, [ebp + 0x44]
push ecx
push eax
push 0x10058040
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x14
mov dword [ebp + 0xcc], 4
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10038723
add esp, 0x48
ret 0xc
mov ecx, dword [ebx + 0x30]
add ecx, 0x34
push edi
push ecx
call fcn.10038336
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x100324b2
mov eax, dword [ebx + 0x30]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebp + 0x20]
push eax
lea ecx, [edi + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003234b
mov edx, 8
cmp dword [ebp + 0x3c], edx
jb 0x10032301
mov ecx, dword [ebp + 0x28]
jmp 0x10032304
lea ecx, [ebp + 0x28]
cmp dword [ebp + 0x58], edx
jb 0x1003230e
mov eax, dword [ebp + 0x44]
jmp 0x10032311
lea eax, [ebp + 0x44]
push ecx
push eax
push 0x10057ff8
push 1
push 0x10069158
call fcn.10017d90
push edi
mov dword [ebp + 0xcc], 4
call fcn.1003a67b
add esp, 0x18
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10038723
add esp, 0x48
ret 0xc
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [ebx + 0x30]
cmp esi, ecx
je 0x100323a9
mov edx, 8
cmp dword [ebp + 0x3c], edx
jb 0x10032366
mov eax, dword [ebp + 0x28]
jmp 0x10032369
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x58], edx
jb 0x10032373
mov ebp, dword [ebp + 0x44]
jmp 0x10032376
add ebp, 0x44
push eax
push ebp
push ecx
push esi
push 0x10057f90
push 1
push 0x10069158
call fcn.10017d90
push edi
call fcn.1003a67b
add esp, 0x20
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10038723
add esp, 0x48
ret 0xc
push 0x34
lea eax, [esp + 0x24]
push 0
push eax
call fcn.10038ae0
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x24]
mov ecx, 3
mov word [esp + 0x2e], cx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x54], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x50], eax
mov ax, si
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x5c], esi
add ax, 0x34
mov dword [esp + 0x4c], edx
mov word [esp + 0x2c], ax
mov ecx, 0xd
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 0xc
movzx esi, ax
push esi
push ecx
push edi
mov ecx, 0x10069588
call fcn.10032130
mov edx, dword [esp + 0x14]
push edx
call fcn.1003a67b
add esp, 4
push 0
push esi
lea ecx, [ebp + 0xe0]
call fcn.10036a30
mov eax, dword [edi + 4]
push 0
push eax
mov ecx, 0x10069bd8
call fcn.1002e220
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
xor eax, eax
add ecx, dword [ebx + 0x28]
adc eax, dword [ebx + 0x2c]
cmp eax, edx
jb 0x100324b1
ja 0x10032475
cmp ecx, esi
jb 0x100324b1
push edx
push esi
mov dword [ebp + 0xcc], 4
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
push ecx
push edx
push eax
push 0x10057f18
push 1
push 0x10069158
call fcn.10017d90
mov ecx, dword [edi + 4]
add esp, 0x20
push 1
push ecx
mov ecx, 0x10069bd8
call fcn.1002e220
pop esi
mov ecx, dword [esp + 0x50]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10038723
add esp, 0x48
ret 0xc