Function at 0x4599e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cba0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 8], ebx
lea esi, [edi + 8]
jne 0x459ce9
lea eax, [esp + 0x18]
push eax
call fcn.00405d00
add esp, 4
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x459a5d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x459ab9
cmp ecx, eax
jg 0x459ab9
movzx eax, word [ebx + ecx*2]
cmp ax, 0x5c
je 0x459a5d
push 0x5c
lea edi, [esp + 0x1c]
call fcn.00416550
mov ebx, dword [esp + 0x18]
mov edx, dword [0x4bb38c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4bb38c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x30], 1
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x402
or eax, ecx
jge 0x459a9f
mov ecx, 0x402
lea eax, [esp + 0x14]
call fcn.00416110
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edi
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test edi, edi
jne 0x459ac3
xor eax, eax
jmp 0x459ae1
push 0x80070057
call fcn.00416be0
mov eax, edi
lea edx, [eax + 2]
jmp 0x459ad0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459ad0
sub eax, edx
sar eax, 1
js 0x459ab9
cmp eax, dword [edi - 8]
jg 0x459ab9
push 0x2e
push 0x5c
lea edx, [esp + 0x1c]
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], 0
call fcn.00443c80
push 0x2e
push 0x2f
lea eax, [esp + 0x1c]
push eax
call fcn.00443c80
push 9
push str.split.dat
lea ecx, [esp + 0x1c]
push ecx
call fcn.004164c0
push 0x3c8
push 0x4a2424
lea edi, [esp + 0x1c]
call fcn.00426b90
add esp, 8
call fcn.0042b390
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov eax, 0x100000
mov ecx, edi
mov edx, esi
mov dword [esp + 0x20], 0
call fcn.00441e20
mov ebx, eax
test ebx, ebx
jge 0x459bc1
call fcn.00441ef0
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459b82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [esp + 0x30], 0
lea eax, [edi - 0x10]
or edx, 0xffffffff
cmp dword [esi], 0
lea ecx, [eax + 0xc]
jne 0x459c29
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459be7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459c0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459c3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459c64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
jne 0x459ce6
mov eax, dword [esi]
test eax, eax
je 0x459c76
call fcn.0045f230
mov eax, dword [esi]
cmp byte [eax + 0x10], 0
je 0x459baa
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push 0x459db0
push 0
mov byte [eax + 0x10], 0
push 0
mov byte [edi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x459cb0
mov dword [edi + 0x28], eax
jmp 0x459baa
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x459ccb
call edi
mov edx, dword [esi]
mov ebx, eax
mov byte [edx + 0x10], 1
jmp 0x459baa
call edi
mov edx, dword [esi]
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
mov byte [edx + 0x10], 1
jmp 0x459baa
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x459baa
mov eax, edi
call fcn.004599b0
mov eax, dword [esi]
cmp byte [eax + 0x10], 0
je 0x459baa
mov byte [eax + 0x10], 0
push edi
mov byte [edi + 0x2c], 0
call fcn.00459fd0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8