Function at 0x59f620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69e55a
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x7933bc]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x348], ecx
push 0
push 0
push 0
push 6
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x334]
call fcn.004e0f64
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004e147d
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004dca1d
test eax, eax
jne 0x59f6a4
push 0x254
push 0x711f54
call fcn.004e0811
test eax, eax
je 0x59f6a4
int3
lea ecx, [ebp - 0x334]
call fcn.004de110
add eax, 0x34
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x34c]
mov ecx, dword [eax]
or ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34c]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.004e147d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004e147d
mov byte [ebp - 4], 3
cmp dword [ebp + 0x18], 0
je 0x59f71b
push 0x25c
push 0x711f8c
mov eax, dword [ebp + 0x18]
push eax
call fcn.004e5ca8
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [ebp - 0x334]
call fcn.004de110
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004e2292
jmp 0x59f791
mov ecx, dword [ebp - 0x348]
add ecx, 4
call fcn.004db22b
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], 1
cmp dword [ebp - 0x340], 0
je 0x59f791
lea ecx, [ebp - 0x340]
push ecx
mov ecx, dword [ebp - 0x348]
add ecx, 4
call fcn.004dcdd8
mov edx, dword [eax]
mov dword [ebp + 0x18], edx
mov eax, dword [ebp - 0x33c]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x1c]
and eax, ecx
push eax
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [ebp - 0x334]
call fcn.004de110
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004e2292
mov dword [ebp - 0x33c], 0
jmp 0x59f739
lea ecx, [ebp - 0x18]
call fcn.004e147d
mov byte [ebp - 4], 4
push 0xf002
lea ecx, [ebp - 0x18]
call fcn.004dca1d
test eax, eax
jne 0x59f7c2
push 0x26f
push 0x711fc4
call fcn.004e0811
test eax, eax
je 0x59f7c2
int3
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004dcc7a
push 0
lea ecx, [ebp - 0x10]
call fcn.004dc6c1
push 0x711ffc
lea ecx, [ebp - 0x10]
call fcn.004e0cc6
push 0
lea ecx, [ebp - 0x10]
call fcn.004dc6c1
lea ecx, [ebp - 0x334]
call fcn.004de110
add eax, 0x14
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x350]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.004db56e
mov esi, eax
lea ecx, [ebp - 0x334]
call fcn.004de110
mov dword [eax + 0xc], esi
lea ecx, [ebp - 0x14]
call fcn.004db56e
mov esi, eax
lea ecx, [ebp - 0x334]
call fcn.004de110
mov dword [eax + 0x30], esi
push 0x104
mov ecx, dword [ebp + 8]
call fcn.004e58d4
mov esi, eax
lea ecx, [ebp - 0x334]
call fcn.004de110
mov dword [eax + 0x1c], esi
lea ecx, [ebp - 0x334]
call fcn.004df240
mov dword [ebp - 0x338], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.004debe2
xor eax, eax
cmp dword [ebp - 0x338], 1
sete al
mov dword [ebp - 0x344], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004dfd17
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004dfd17
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004dfd17
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004dfd17
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.004dc01d
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004e2bca
mov esp, ebp
pop ebp
ret 0x14