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

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
call fcn.00405160
xor ebx, ebx
cmp dword [0x4ee088], ebx
je 0x405261
push edi
call fcn.0042c5a0
jmp 0x40526f
push 0x497cf8
push edi
call fcn.0045bfb8
add esp, 8
cmp eax, ebx
mov dword [esi + 4], eax
je 0x40544e
cmp dword [0x4ee088], ebx
push ebx
je 0x405292
mov ecx, dword [eax + 0x1c]
mov dword [eax + 8], ebx
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + 4]
push edx
jmp 0x405293
push ebx
push eax
call fcn.0045c052
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [0x4ee088], ebx
je 0x4052ba
cmp eax, ebx
je 0x4052cc
mov ecx, dword [eax + 4]
push ecx
push 0x1c
push 1
lea edx, [esp + 0x18]
push edx
jmp 0x4052c4
push eax
push 0x1c
push 1
lea eax, [esp + 0x18]
push eax
call fcn.0045c579
add esp, 0x10
mov edi, dword [esp + 0x20]
lea edi, [edi*8 + 0x1c]
push edi
call fcn.0045a843
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add esp, 4
cmp dword [0x4ee088], ebx
je 0x405302
cmp eax, ebx
je 0x40530d
mov ecx, dword [eax + 0x1c]
mov dword [eax + 8], ebx
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + 4]
push ebx
push edx
jmp 0x405304
push ebx
push ebx
push eax
call fcn.0045c052
add esp, 0xc
cmp dword [0x4ee088], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
je 0x405325
cmp eax, ebx
je 0x405332
mov edx, dword [eax + 4]
push edx
jmp 0x405326
push eax
push edi
push 1
push ecx
call fcn.0045c579
add esp, 0x10
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
imul ecx, dword [eax + 8]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0045a843
mov ecx, dword [esi + 8]
mov dword [esi + 0x4c], eax
mov eax, dword [ecx + 0xc]
imul eax, dword [ecx + 8]
lea edx, [eax + eax*2]
push edx
call fcn.0045a843
mov dword [esi + 0x44], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
imul ecx, dword [eax + 8]
push ecx
call fcn.0045a843
mov dword [esi + 0x48], eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0xc]
imul edx, dword [eax + 8]
mov eax, dword [esp + 0x38]
add esp, 0xc
add edx, edx
add edx, edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], eax
lea edi, [esi + 0x50]
mov dword [esp + 0x2c], 5
push ebp
mov ecx, dword [esi + 8]
mov ebp, dword [ecx + 0xc]
mov eax, dword [esi + 0x74]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
push ebx
push edi
push 2
push 0x15
push ebx
push 1
push ebp
push ecx
push eax
call edx
add edi, 4
sub dword [esp + 0x30], 1
jne 0x4053a2
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x74]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
push ebx
lea edi, [esi + 0x78]
push edi
mov edi, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
push ebx
push 0x15
push ebx
push 1
push edi
push ecx
push eax
call edx
mov al, byte [esp + 0x34]
mov ecx, dword [esi + 8]
or edi, 0xffffffff
pop ebp
mov byte [esi + 0x34], al
mov byte [esi + 0x36], bl
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
cmp dword [ecx + 4], 0x20
push esi
push ebx
jne 0x405430
push 0x405b40
jmp 0x405435
push 0x4058d0
call fcn.00459fa7
add esp, 0xc
push edi
mov edx, eax
push edx
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [esi + 0xc], 1
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8