Function at 0x46a6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49dec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov al, byte [esp + 0x40]
xor ecx, ecx
mov byte [esp + 0xc], al
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov si, word [esp + 0x40]
mov byte [esp + 0x24], 2
cmp si, word [esp + 0x44]
jle 0x46a7e2
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0046eb30
mov ecx, dword [0x4b63ec]
call fcn.00416cf0
cmp ax, bx
jne 0x46a7da
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp esi, edi
mov byte [esp + 0x24], 1
je 0x46a783
push ebx
mov ecx, esi
call fcn.00402090
add esi, 4
cmp esi, edi
jne 0x46a770
mov esi, dword [esp + 0x10]
push esi
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
call fcn.0046ec60
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, edi
mov dword [esp + 0x24], 0xffffffff
je 0x46a7cc
push ebx
mov ecx, esi
call fcn.004185e0
add esi, 0x10
cmp esi, edi
jne 0x46a7b9
mov esi, dword [esp + 0x34]
push esi
call fcn.0048d500
add esp, 4
jmp 0x46aa43
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
cmp edi, ebx
jne 0x46a7ee
xor edx, edx
jmp 0x46a7f7
mov edx, dword [esp + 0x38]
sub edx, edi
sar edx, 4
movsx esi, si
cmp edx, esi
ja 0x46a873
push eax
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0040ab00
mov eax, dword [esp + 0x10]
push eax
call fcn.0048d500
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x24], bl
call fcn.0046ec60
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004182c0
mov eax, dword [esp + 0x34]
push eax
call fcn.0048d500
add esp, 4
xor ax, ax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x1c
shl esi, 4
add esi, edi
lea edx, [esp + 0xc]
cmp edx, esi
je 0x46a980
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.0040a860
cmp edi, eax
ja 0x46a8d5
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.0040b060
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040ab00
mov ecx, esi
call fcn.0040a860
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
jmp 0x46a980
mov ecx, esi
call fcn.0040a860
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.0040aae0
cmp edi, eax
ja 0x46a921
mov edi, dword [esi + 4]
lea ecx, [esp + 0xc]
call fcn.0040a860
mov edx, dword [esp + 0x10]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push edx
push edi
push eax
call fcn.0040b060
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 8]
add esp, 0xc
push ecx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00401c00
jmp 0x46a8be
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.0040ab00
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0048d500
add esp, 4
mov ecx, esi
call fcn.0040a860
cmp eax, ebx
jge 0x46a94e
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0048db76
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.00401c00
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp ecx, ebx
je 0x46aa17
sub eax, ecx
sar eax, 2
cmp ax, bx
je 0x46aa17
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.0046eb30
sub esp, 0x10
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
mov byte [esp + 0x3c], 3
call fcn.0040a7f0
mov ecx, dword [0x4b63ec]
mov byte [esp + 0x38], 2
call fcn.004169c0
cmp ax, bx
jge 0x46aa17
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00401b60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0046ec60
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00413a30
xor ax, ax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00401b60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0046ec60
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.00413a30
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x1c