Function at 0x599bc4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push 0x20
call fcn.005fffc4
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x78f158
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x599c33
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
lea eax, [ebp - 8]
push eax
push 0x18
mov ebx, dword [ebp - 4]
call fcn.004c6a80
push ebx
push 0
push dword [ebp - 0x20]
call dword [0x7ad529]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x599c6f
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 4]
call fcn.004c6a80
mov eax, 1
cmp eax, ecx
jl 0x599c8d
push 1
call fcn.005fffca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x7968e2]
fstp qword [ebp - 0x2c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x2c]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.00601210
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
call fcn.0059a0b0
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x599d02
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x7968e2]
fstp qword [ebp - 0x28]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x28]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.00601210
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0059a0b0
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x599d73
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x79b895]
fstp qword [ebp - 0x28]
push 0x80000301
push 0
push 2
fld qword [ebp - 0x28]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.00601210
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0059a2bb
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x599de4
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x34]
mov word [ebp - 0x10], ax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x77f42c]
fstp qword [ebp - 0x28]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x28]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.00601210
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0059a0b0
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x599e56
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
push 0x104
call fcn.0059a44b
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x599e7d
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cwde
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x760425]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
push 0
push 0
push 0x104
push dword [ebp - 0x18]
fld qword [ebp - 0x28]
call fcn.004c58cd
push eax
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x599ee1
push 6
call fcn.005fffca
add esp, 4
cmp word [ebp - 0x10], 0x104
jle 0x599ef2
jmp 0x59a090
lea eax, [ebp - 0x18]
push eax
call fcn.0059a588
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x599f12
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 1
push 1
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x79b89d
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0059a622
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x599f51
push ebx
call fcn.005fffbe
add esp, 4
cmp dword [ebp - 0x24], 0xffffffff
jne 0x599fe9
push 1
push 1
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str..fnr
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0059a622
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x599f96
push ebx
call fcn.005fffbe
add esp, 4
cmp dword [ebp - 0x34], 0xffffffff
jne 0x599fe9
push 1
push 1
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov eax, str..dll
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0059a622
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x599fdb
push ebx
call fcn.005fffbe
add esp, 4
cmp dword [ebp - 0x44], 0xffffffff
jne 0x599fe9
xor eax, eax
jmp 0x599fee
mov eax, 1
test eax, eax
je 0x59a02c
pushal
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [ecx], edx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [edx], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ecx + 4], edx
popal
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x910
call fcn.00601210
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
call fcn.0059a0b0
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x59a07f
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
cmp word [ebp - 0x10], 0
jne 0x599d79
mov ebx, dword [ebp - 4]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x59a0ac
push ebx
call fcn.005fffbe
add esp, 4
mov esp, ebp
pop ebp
ret