Function at 0x46a3c0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cc22c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
push ebx
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x54], al
call fcn.00401600
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
mov dword [esp + 0x16c], ebx
call fcn.00401600
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 1
mov byte [esp + 0x18], dl
call fcn.00401600
mov ebp, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ebp, eax
mov byte [esp + 0x168], 2
je 0x46a598
push edi
mov eax, dword [ebp]
cmp eax, ebx
jne 0x46a4a0
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 4]
inc eax
push ecx
push eax
push str.aid
lea edx, [esp + 0x70]
push str._s_d_d
push edx
mov dword [esp + 0x40], eax
call fcn.004b8784
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.0042d220
jmp 0x46a584
cmp eax, 1
jne 0x46a4ec
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
inc eax
push ecx
push eax
push str.sid
lea edx, [esp + 0x70]
push str._s_d_d
push edx
mov dword [esp + 0x3c], eax
call fcn.004b8784
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.0042d220
jmp 0x46a584
cmp eax, 2
jne 0x46a584
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
inc eax
push ecx
push eax
push str.tid
lea edx, [esp + 0x70]
push str._s_d_d
push edx
mov dword [esp + 0x28], eax
call fcn.004b8784
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov eax, dword [0x4cf418]
mov edx, dword [esp + 0x20]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x46a53e
call fcn.004a9dbb
cmp esi, ebx
jbe 0x46a584
mov ecx, dword [esp + 0x20]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebx
call fcn.00401870
test al, al
je 0x46a582
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, esi
lea esi, [esp + 0x64]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00401e40
xor ebx, ebx
mov eax, dword [esp + 0x30]
add ebp, 0x120
cmp ebp, dword [eax + 0xc]
jne 0x46a452
pop edi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00453120
mov esi, dword [esp + 0x17c]
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
mov byte [esp + 0x180], 3
call fcn.00453120
mov eax, dword [esp + 0x5c]
add esp, 0x18
cmp eax, ebx
je 0x46a5ef
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46a5e6
cmp al, 0xff
je 0x46a5e6
dec al
mov byte [ecx], al
jmp 0x46a5ef
push ecx
call fcn.004a9db0
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ebx
cmp ecx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x46a61f
mov al, byte [ecx - 1]
test al, al
je 0x46a615
cmp al, 0xff
je 0x46a615
dec al
mov byte [ecx - 1], al
jmp 0x46a61f
dec ecx
push ecx
call fcn.004a9db0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x46a64f
mov al, byte [ecx - 1]
test al, al
je 0x46a645
cmp al, 0xff
je 0x46a645
dec al
mov byte [ecx - 1], al
jmp 0x46a64f
dec ecx
push ecx
call fcn.004a9db0
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], ebx
cmp ecx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
je 0x46a67f
mov al, byte [ecx - 1]
test al, al
je 0x46a675
cmp al, 0xff
je 0x46a675
dec al
mov byte [ecx - 1], al
jmp 0x46a67f
dec ecx
push ecx
call fcn.004a9db0
add esp, 4
mov ecx, dword [esp + 0x160]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 4