Function at 0x46a630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56c6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x46a691
mov ecx, edi
call fcn.0046a360
test eax, eax
sete cl
mov byte [edi + 0xbc], cl
test cl, cl
jne 0x46a698
cmp eax, 2
je 0x46a698
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret
mov byte [edi + 0xbc], 0
mov ecx, edi
call fcn.0046a910
mov byte [edi + 0xbd], al
mov ax, word [0x5a1483]
test ax, ax
je 0x46a6d6
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x330
call fcn.004ba6c0
mov ax, word [0x5a14a5]
test ax, ax
je 0x46a707
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x34c
call fcn.004ba6c0
mov ax, word [0x5a14a7]
test ax, ax
je 0x46a738
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x368
call fcn.004ba6c0
mov ax, word [0x5a14a3]
test ax, ax
je 0x46a769
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x384
call fcn.004ba6c0
mov ax, word [0x5a1481]
test ax, ax
je 0x46a79a
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x3a0
call fcn.004ba6c0
mov ax, word [0x5a1471]
test ax, ax
je 0x46a7cb
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x3bc
call fcn.004ba6c0
mov ax, word [0x5a149d]
test ax, ax
je 0x46a7fc
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
mov ecx, dword [edi + 0xa8]
push eax
add ecx, 0x3d8
call fcn.004ba6c0
lea esi, [edi + 4]
mov ecx, esi
call fcn.0046e820
call fcn.0046a0d0
mov dword [eax + 4], esi
cmp byte [edi + 0xbc], 0
jne 0x46a8f5
cmp byte [edi + 0xbd], 0
jne 0x46a8f5
mov ecx, dword [edi + 0xcc]
mov eax, ecx
shr eax, 3
test al, 1
jne 0x46a8f5
shr ecx, 1
test cl, 1
je 0x46a84f
test byte [edi + 0xcc], 1
je 0x46a8f5
movzx eax, word [0x5a1471]
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
call fcn.004b9e60
push eax
lea ecx, [esp + 0x34]
call fcn.0045e2a0
movzx eax, word [0x5a1483]
mov ecx, dword [edi + 0xfc]
mov word [esp + 0xc], ax
push dword [esp + 0xc]
mov dword [esp + 0x58], 0
call fcn.004b9e60
push eax
lea ecx, [esp + 0x18]
call fcn.0045e2a0
push 0
push 1
push 0
push 0xfffffffffffffffa
lea eax, [esp + 0x40]
mov byte [esp + 0x64], 1
push eax
lea eax, [esp + 0x28]
push eax
push 4
push 0
push dword [edi + 0xb0]
lea eax, [esp + 0x34]
push eax
call fcn.0046e340
add esp, 0x28
lea ecx, [esp + 0x14]
call fcn.0045fd40
lea ecx, [esp + 0x30]
call fcn.0045fd40
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret