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

Disassembly:
push 0xffffffffffffffff
push 0x4ed510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x532c18]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x5c]
cmp ebp, 0xffffffff
mov byte [esp + 0x4c], 5
mov esi, dword [eax + 0xcc]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x2c], ecx
jne 0x46f6e5
cmp dword [eax + 0xd8], ebx
je 0x46f745
lea ebp, [ecx - 1]
cmp ebp, ecx
jg 0x46f6ed
cmp ebp, ebx
jge 0x46f6ef
mov ebp, ecx
xor edi, edi
cmp ecx, ebx
jle 0x46f7fc
lea eax, [esi + 0x2348]
mov dword [esp + 0x5c], eax
cmp byte [esi + edi + 0x20], 1
jne 0x46f730
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
cmp eax, ebx
je 0x46f730
mov ecx, dword [esp + 0x58]
push ecx
push eax
call fcn.004b72dd
add esp, 8
test eax, eax
jne 0x46f72c
cmp dword [esp + 0x60], ebx
jne 0x46f749
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
inc edi
add edx, 4
cmp edi, ecx
mov dword [esp + 0x5c], edx
jl 0x46f703
jmp 0x46f7fc
mov ebp, ecx
jmp 0x46f6e9
push 0x525164
push 0x196
call fcn.004a6ea0
mov edi, dword [esp + 0x60]
push eax
push edi
lea edx, [esp + 0x30]
push str._s_r_n_r_n_s
push edx
call fcn.004cbb75
mov eax, dword [esp + 0x38]
push 0x23
push eax
call fcn.00486e20
add esp, 0x20
cmp eax, 6
je 0x46f800
cmp eax, 2
jne 0x46f790
mov dword [0x5de0a4], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 4
call fcn.004ce26c
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call fcn.004ce26c
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call fcn.004ce26c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.004ce26c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], bl
call fcn.004ce26c
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004ce26c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov edi, dword [esp + 0x58]
mov ecx, dword [0x58c95c]
call fcn.00450450
push edi
call fcn.00487f60
add esp, 4
cmp eax, ebx
mov dword [esp + 0x5c], eax
jne 0x46f830
cmp dword [esp + 0x60], ebx
je 0x46f855
push edi
call fcn.00486880
add esp, 4
jmp 0x46fa32
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
push edx
push ecx
push edi
push eax
call fcn.0046ec60
mov edi, eax
add esp, 0x14
cmp edi, ebx
jle 0x46fa32
jmp 0x46f857
xor edi, edi
cmp dword [esp + 0x2c], 0x63
jge 0x46fa32
push ebp
push esi
call fcn.0046f040
mov dword [esi + ebp*4 + 0x3b3d0], ebx
mov edx, dword [esp + 0x2c]
mov dword [esi + ebp*4 + 0x2988], edx
mov dword [esi + ebp*4 + 0x3a4], ebx
mov edx, dword [esp + 0x60]
mov dword [esi + ebp*4 + 0x534], ebx
mov byte [esi + ebp + 0x20], 1
mov eax, dword [esp + 0x3c]
mov dword [esi + ebp*8 + 0xe98], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + ebp*8 + 0xe9c], ecx
mov dword [esi + ebp*4 + 0x9e4], edi
mov dword [esi + ebp*4 + 0x6c4], ebx
push edx
mov dword [esi + ebp*4 + 0x854], ebx
call fcn.004b726f
add esp, 0xc
cmp eax, ebx
mov dword [esi + ebp*4 + 0x2348], eax
je 0x46fa32
mov eax, dword [esp + 0x5c]
mov dword [esi + ebp*4 + 0x24d8], eax
mov ecx, dword [esp + 0x34]
mov dword [esi + ebp*8 + 0x2668], ecx
mov edx, dword [esp + 0x38]
mov dword [esi + ebp*8 + 0x266c], edx
mov eax, dword [esp + 0x3c]
mov dword [esi + ebp*8 + 0xb78], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + ebp*8 + 0xb7c], ecx
lea edx, [ebp + ebp*8]
mov dword [esi + ebp*4 + 0x11b8], 0x930
mov eax, dword [esi + ebp*4 + 0x3b23c]
shl edx, 5
or al, 1
add edx, ebp
mov dword [esi + ebp*4 + 0x3b23c], eax
mov ecx, 0x242
xor eax, eax
lea edi, [esi + edx*8 + 0x2b1c]
mov dword [esi + ebp*4 + 0x84], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov dword [esi + ebp*4 + 0x3b58c], ebx
mov dword [esi + ebp*4 + 0x3b720], ebx
mov edx, dword [esi + 0xc]
inc edx
push eax
mov dword [esi + 0xc], edx
call fcn.0046f5b0
push esi
call fcn.00484ba0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
call fcn.0046fdb0
add esp, 0x28
test eax, eax
je 0x46fa2e
inc ebp
push esi
push ebp
call fcn.00401490
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x46fa2e
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebx
je 0x46f9d1
lea ecx, [esp + 0x1c]
push ecx
call fcn.004898d0
add esp, 4
mov dword [esi + 0x198], eax
mov edx, dword [esp + 0x18]
cmp dword [edx - 8], ebx
je 0x46f9ed
lea eax, [esp + 0x18]
push eax
call fcn.004898d0
add esp, 4
mov dword [esi + 0x19c], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], ebx
je 0x46fa09
lea edx, [esp + 0x14]
push edx
call fcn.004898d0
add esp, 4
mov dword [esi + 0x1a4], eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x46fa25
lea ecx, [esp + 0x10]
push ecx
call fcn.004898d0
add esp, 4
mov dword [esi + 0x1d8], eax
push esi
call fcn.00401b60
add esp, 4
mov dword [esp + 0x30], ebx
call fcn.0046eb90
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 4
call fcn.004ce26c
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call fcn.004ce26c
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call fcn.004ce26c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.004ce26c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], bl
call fcn.004ce26c
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004ce26c
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret