Function at 0x4f39d5
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 0x4f3c8d
mov eax, dword [esi + 0x64]
cmp eax, 2
je 0x4f3a30
cmp eax, 4
je 0x4f3a30
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push 0x4f39b0
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.0043a4f0
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
je 0x4f3a57
push edi
call fcn.00439ee0
jmp 0x4f3a6b
push str.file:__
call fcn.0043a000
push edi
lea ecx, [esp + 0x1c]
call fcn.0043a000
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
test al, al
jne 0x4f3a92
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f020
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.004a76d0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.00438e70
call fcn.004dfb70
test al, al
je 0x4f3b11
cmp dword [esi + 0x64], 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
jne 0x4f3ae4
push 0x5e4754
lea ecx, [esp + 0x28]
call fcn.0043a000
mov edx, dword [esi + 0x3c]
push edx
lea ecx, [esp + 0x28]
call fcn.0043a000
mov eax, dword [esi + 0x54]
push eax
jmp 0x4f3ae8
mov ecx, dword [esi + 0x54]
push ecx
lea ecx, [esp + 0x28]
call fcn.0043a000
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
call fcn.00438d60
mov eax, dword [esp + 0x24]
push eax
call fcn.0043f020
add esp, 4
jmp 0x4f3bc8
push edi
mov ecx, ebx
call fcn.004c8960
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x4f3b53
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x64], 4
jne 0x4f3b9c
push edi
mov ecx, ebx
call fcn.004c8920
mov edi, eax
test edi, edi
jne 0x4f3b6f
push ebp
call fcn.0043f020
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00422480
lea ecx, [esp + 0x30]
call fcn.00438bc0
lea ecx, [esp + 0x18]
call fcn.00422480
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x30
ret
push 0x5e4754
lea ecx, [esp + 0x28]
call fcn.0043a000
push edi
lea ecx, [esp + 0x28]
call fcn.0043a000
push ebp
lea ecx, [esp + 0x28]
call fcn.0043a000
push edi
call fcn.0043f020
add esp, 4
jmp 0x4f3ba6
push ebp
lea ecx, [esp + 0x28]
call fcn.00439ee0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.00438d10
push ebp
call fcn.0043f020
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00422480
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 0x4f3c70
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test al, al
je 0x4f3c60
push 0x10000
call fcn.0043f000
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 0x4f3c60
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 0x4f3c43
mov edx, dword [esi]
push ebp
push ebx
mov ecx, esi
call dword [edx + 0x18]
test ebp, ebp
ja 0x4f3c20
jmp 0x4f3c48
mov byte [esp + 0x13], 0
push ebx
call fcn.0043f020
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x4f3c60
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 0x4f3c77
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
lea ecx, [esp + 0x30]
call fcn.00438bc0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f020
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret