Function at 0x4f2ee5
Capabilities:
Create thread

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
lea ebx, [esi + 0x30]
push edi
mov edi, dword [ebx]
xor ebp, ebp
cmp edi, ebp
mov byte [esp + 0x13], 0
je 0x4f319d
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x4f2f40
cmp eax, 4
je 0x4f2f40
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push 0x4f2ec0
push ebp
push ebp
mov byte [esi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov byte [esp + 0xb], 1
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x30
ret
push 0x3a
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0043a5d0
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
je 0x4f2f67
push edi
call fcn.00439fc0
jmp 0x4f2f7b
push str.file:__
call fcn.0043a0e0
push edi
lea ecx, [esp + 0x1c]
call fcn.0043a0e0
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
test al, al
jne 0x4f2fa2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f0a0
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret
mov ecx, dword [esi + 0x88]
call fcn.004a7100
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.00438f50
call fcn.004df210
test al, al
je 0x4f3021
cmp dword [esi + 0x64], 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
jne 0x4f2ff4
push 0x5e466c
lea ecx, [esp + 0x28]
call fcn.0043a0e0
mov edx, dword [esi + 0x3c]
push edx
lea ecx, [esp + 0x28]
call fcn.0043a0e0
mov eax, dword [esi + 0x54]
push eax
jmp 0x4f2ff8
mov ecx, dword [esi + 0x54]
push ecx
lea ecx, [esp + 0x28]
call fcn.0043a0e0
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
call fcn.00438e40
mov eax, dword [esp + 0x24]
push eax
call fcn.0043f0a0
add esp, 4
jmp 0x4f30d8
push edi
mov ecx, ebx
call fcn.004c8020
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x4f3063
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x64], 4
jne 0x4f30ac
push edi
mov ecx, ebx
call fcn.004c7fe0
mov edi, eax
test edi, edi
jne 0x4f307f
push ebp
call fcn.0043f0a0
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00402640
lea ecx, [esp + 0x30]
call fcn.00438ca0
lea ecx, [esp + 0x18]
call fcn.00402640
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret
push 0x5e466c
lea ecx, [esp + 0x28]
call fcn.0043a0e0
push edi
lea ecx, [esp + 0x28]
call fcn.0043a0e0
push ebp
lea ecx, [esp + 0x28]
call fcn.0043a0e0
push edi
call fcn.0043f0a0
add esp, 4
jmp 0x4f30b6
push ebp
lea ecx, [esp + 0x28]
call fcn.00439fc0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.00438df0
push ebp
call fcn.0043f0a0
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00402640
xor ebp, ebp
mov edx, dword [esi + 0x88]
mov ecx, dword [edx + 0xbb4]
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
call dword [eax + 0xc]
mov edi, eax
cmp edi, ebp
je 0x4f3180
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test al, al
je 0x4f3170
push 0x10000
call fcn.0043f080
mov edx, dword [edi]
add esp, 4
mov ecx, edi
mov ebx, eax
call dword [edx + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
cmp ebx, ebp
je 0x4f3170
mov byte [esp + 0x13], 1
lea ebx, [ebx]
mov eax, dword [edi]
push 0x10000
push ebx
mov ecx, edi
call dword [eax + 0x10]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4f3153
mov edx, dword [esi]
push ebp
push ebx
mov ecx, esi
call dword [edx + 0x18]
test ebp, ebp
ja 0x4f3130
jmp 0x4f3158
mov byte [esp + 0x13], 0
push ebx
call fcn.0043f0a0
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x4f3170
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov al, byte [esp + 0x13]
test al, al
jne 0x4f3187
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
lea ecx, [esp + 0x30]
call fcn.00438ca0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f0a0
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret