Function at 0x4108d0
Capabilities:
Create thread
Read file on windows

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
lea ebx, [esi*4 + 0x466b90]
mov byte [esi + 0x4669d8], al
mov eax, dword [ebx]
test eax, eax
push edi
mov dword [esi*4 + 0x466a8c], 2
je 0x410934
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x24]
test byte [esp + 0x14], 1
je 0x41092b
mov eax, dword [0x466bbc]
test eax, eax
jbe 0x410923
mov eax, dword [ebx]
push eax
call fcn.0040f590
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
push esi
call fcn.0040f6a0
add esp, 4
mov edx, dword [esp + 0x7c]
lea eax, [esi*4 + 0x4669ec]
push eax
push edx
call fcn.004194c0
add esp, 8
cmp eax, 0xffffffff
lea edi, [esi*4 + 0x4669fc]
mov dword [edi], eax
je 0x41106c
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push 0
lea ecx, [esp + 0x88]
push ecx
push 4
lea edx, [esp + 0x58]
push edx
push eax
call ebp
test eax, eax
jne 0x410993
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x4c]
cmp eax, 0x46464952
mov dword [esp + 0x1c], eax
je 0x4109bf
push 0
lea ecx, [esp + 0x88]
push ecx
mov dword [esi*4 + 0x466a58], 1
push 0x2c
lea edx, [esp + 0x58]
jmp 0x4109da
push 0
lea ecx, [esp + 0x88]
push ecx
mov dword [esi*4 + 0x466a58], 0
push 0x28
lea edx, [esp + 0x5c]
mov eax, dword [edi]
push edx
push eax
call ebp
test eax, eax
jne 0x4109fe
mov ecx, dword [edi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
cmp ax, 1
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov cx, word [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
mov word [esp + 0x34], cx
jne 0x410a35
mov word [esp + 0x34], 0
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + edx + 0x64]
push 0
mov dword [esi*8 + 0x466b70], ebp
mov dword [esi*8 + 0x466b74], 0
mov eax, dword [esi*8 + 0x466b74]
mov ecx, dword [esi*8 + 0x466b70]
push 0x3e8
push eax
push ecx
mov dword [esi*4 + 0x466ab0], ebp
call fcn.00452060
mov dword [esi*8 + 0x466b70], eax
mov dword [esi*8 + 0x466b74], edx
mov edx, dword [esp + 0x68]
mov eax, dword [esi*8 + 0x466b74]
mov ecx, dword [esi*8 + 0x466b70]
push 0
push edx
push eax
push ecx
call fcn.00451fb0
mov dword [esi*8 + 0x466b70], eax
mov eax, dword [0x45fdf0]
mov dword [esi*8 + 0x466b74], edx
xor edx, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
push 0
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], ecx
push ebx
mov dword [esp + 0x44], eax
mov eax, dword [0x466bac]
lea ecx, [esp + 0x40]
add ebp, 0x400
push ecx
mov dword [esp + 0x44], 0x14
mov dword [esp + 0x4c], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x410b1a
mov edx, dword [edi]
push edx
mov dword [ebx], 0
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0
push 0
push 0
lea ebp, [esi*4 + 0x466ab0]
push ebp
lea edx, [esp + 0x90]
push edx
mov edx, dword [ebp]
push edx
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x410d4c
cmp dword [esi*4 + 0x466a58], 1
mov eax, dword [ebp]
jne 0x410eb6
cmp eax, 0x400000
jb 0x410e40
cmp dword [esp + 0x1c], 8
jne 0x410e40
push 0x80010
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
lea ebp, [esi*4 + 0x466a68]
mov dword [ebp], eax
je 0x410d4c
mov edx, dword [edi]
push 0
lea ecx, [esp + 0x88]
push ecx
push 0x80000
push eax
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x410d32
mov eax, dword [esi*4 + 0x466ab0]
push 0
lea ecx, [esi*4 + 0x466ac0]
push ecx
mov dword [esi*4 + 0x4669ec], eax
lea edx, [esi*4 + 0x466b40]
push edx
lea eax, [esi*4 + 0x466b10]
push eax
mov eax, dword [ebp]
lea ecx, [esi*4 + 0x466af0]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x2c]
push edx
push 0x80000
push eax
push ecx
push 0
mov dword [esi*4 + 0x466a0c], 0
call fcn.00411ee0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esi*4 + 0x4669ec]
sub edx, eax
add ecx, edx
mov edx, dword [esi*4 + 0x466a0c]
mov dword [esi*4 + 0x4669ec], ecx
sub eax, dword [esp + 0xa8]
add edx, eax
mov eax, dword [esi*4 + 0x466ab0]
add esp, 0x28
test al, 7
mov dword [esi*4 + 0x466a0c], edx
mov dword [esi*4 + 0x466b60], 0
je 0x410c64
mov dword [esi*4 + 0x466b60], 1
mov edx, dword [esi*4 + 0x466b60]
shr eax, 3
push 1
sub eax, edx
push 0
sub eax, 0x80000
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edx, dword [esi*4 + 0x466b60]
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [edi]
add edx, 0x80000
push edx
push eax
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x410cb5
mov edx, dword [ebp]
push edx
jmp 0x410d36
mov eax, dword [esi*4 + 0x466b60]
push eax
lea ecx, [esi*4 + 0x466ad0]
push ecx
lea edx, [esi*4 + 0x466b50]
push edx
lea eax, [esi*4 + 0x466b30]
push eax
mov eax, dword [ebp]
lea ecx, [esi*4 + 0x466b00]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x2c]
push edx
push 0x80000
push eax
add ecx, 2
push ecx
push 0
call fcn.00411ee0
mov edx, dword [esi*4 + 0x466ab0]
mov eax, dword [edi]
add esp, 0x28
push 1
shr edx, 3
push 0
neg edx
push edx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [esi*4 + 0x4669dc]
push ecx
push 0x45c4b0
push eax
call dword [edx]
test eax, eax
jge 0x410d59
mov eax, dword [ebp]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp], 0
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x410afa
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi*8 + 0x466a1c], eax
call edi
mov edi, dword [esi*4 + 0x466ab0]
add edi, 0x3fffff
shr edi, 0x16
dec edi
lea ebp, [edi + 1]
mov dword [esi*8 + 0x466a20], eax
lea eax, [ebp*8]
push eax
push 8
mov dword [esp + 0x84], ebp
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esi*4 + 0x466a78], eax
xor eax, eax
test edi, edi
jle 0x410df0
mov ecx, 0x100000
mov edx, dword [esi*4 + 0x466a78]
mov dword [edx + eax*8], ecx
mov edx, dword [esi*4 + 0x466a78]
mov ebp, dword [esi*8 + 0x466a1c]
mov dword [edx + eax*8 + 4], ebp
inc eax
add ecx, 0x100000
cmp eax, edi
jl 0x410dc5
mov ebp, dword [esp + 0x7c]
mov eax, dword [esi*4 + 0x466a78]
mov dword [eax + edi*8], 0xffffffff
mov ecx, dword [esi*4 + 0x466a78]
mov edx, dword [esi*8 + 0x466a20]
mov dword [ecx + edi*8 + 4], edx
mov edx, dword [esi*4 + 0x466a78]
mov eax, dword [esi*4 + 0x4669dc]
mov ecx, dword [eax]
push edx
push ebp
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x411063
mov eax, dword [0x466bc0]
test eax, eax
jne 0x411041
jmp 0x41102c
mov ecx, dword [edi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x7c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
mov dword [edi], 0
mov dword [esp + 0x1c], 0
call fcn.00419d60
add esp, 0xc
test eax, eax
jne 0x410e88
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov dword [ebx], 0
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
push 2
add edx, 4
push edx
push eax
push ecx
call fcn.004114c0
lea edx, [esp + 0x20]
push edx
call fcn.00419fb0
add esp, 0x14
jmp 0x411086
cmp eax, 0x100000
jb 0x410ed5
add eax, 0xfff00000
mov dword [esi*4 + 0x4669ec], eax
mov eax, 0x100000
mov dword [esi*4 + 0x466a0c], eax
mov edx, dword [esp + 0x80]
push 0
lea ecx, [esp + 0x88]
push ecx
push eax
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x410f1a
cmp dword [ebp], 0x100000
jb 0x411077
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [esi*4 + 0x4669dc]
push ecx
push 0x45c4b0
push eax
call dword [edx]
test eax, eax
jge 0x410f42
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [edi]
push edx
mov dword [ebx], 0
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], 0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi*8 + 0x466a1c], eax
call edi
mov edi, dword [ebp]
add edi, 0xfffff
shr edi, 0x14
dec edi
lea ebp, [edi + 1]
mov dword [esi*8 + 0x466a20], eax
lea eax, [ebp*8]
push eax
push 8
mov dword [esp + 0x84], ebp
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esi*4 + 0x466a78], eax
xor eax, eax
test edi, edi
jle 0x410fd5
mov ecx, 0x80000
mov edx, dword [esi*4 + 0x466a78]
mov dword [edx + eax*8], ecx
mov edx, dword [esi*4 + 0x466a78]
mov ebp, dword [esi*8 + 0x466a1c]
mov dword [edx + eax*8 + 4], ebp
inc eax
add ecx, 0x80000
cmp eax, edi
jl 0x410faa
mov ebp, dword [esp + 0x7c]
mov eax, dword [esi*4 + 0x466a78]
mov dword [eax + edi*8], 0xffffffff
mov ecx, dword [esi*4 + 0x466a78]
mov edx, dword [esi*8 + 0x466a20]
mov dword [ecx + edi*8 + 4], edx
mov edx, dword [esi*4 + 0x466a78]
mov eax, dword [esi*4 + 0x4669dc]
mov ecx, dword [eax]
push edx
push ebp
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x411023
push esi
call fcn.0040f6a0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov eax, dword [0x466bc0]
test eax, eax
jne 0x411041
push 0x466a40
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov dword [0x466bc0], 1
lea eax, [esp + 0x20]
push eax
push 0
push esi
push 0x4104c0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [esi*4 + 0x466ae0], eax
jne 0x411086
push esi
call fcn.0040f6a0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov ecx, dword [edi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, dword [esi*4 + 0x466ab0]
mov eax, dword [ebx]
mov edx, dword [eax]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x8c]
push ecx
push eax
call dword [edx + 0x4c]
test eax, eax
jge 0x4110ba
push esi
call fcn.0040f6a0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x68
ret
mov eax, dword [ebx]
test eax, eax
je 0x411138
mov edx, dword [eax]
push 0xffffd8f0
push eax
call dword [edx + 0x3c]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x24]
test byte [esp + 0x14], 2
je 0x4110f2
push esi
call fcn.0040f6a0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push eax
push ecx
push esi
call fcn.0040d2f0
mov ecx, dword [esp + 0x94]
mov eax, dword [ebx]
mov edx, dword [eax]
add esp, 0xc
push ecx
push 0
push 0
push eax
call dword [edx + 0x30]
push esi
call fcn.0040f4d0
mov eax, dword [esp + 0x9c]
mov ebx, dword [ebx]
mov edx, dword [ebx]
add esp, 4
push eax
push ebx
call dword [edx + 0x40]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret