Function at 0x46cf90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cb898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov al, byte [esp + 0x54]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov byte [esp + 0x34], al
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov ecx, dword [ecx + 0x77c]
mov dword [esp + 0x5c], ebx
call fcn.0043bde0
push eax
lea ecx, [esp + 0x38]
call fcn.004402d0
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x46cfe7
xor ebp, ebp
jmp 0x46cff0
mov ebp, dword [esp + 0x3c]
sub ebp, eax
sar ebp, 2
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
jle 0x46d1dc
jmp 0x46d008
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edi*4]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push edx
mov ecx, dword [eax]
push 0x4d019c
push eax
call dword [ecx]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46d1cf
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
push edx
push str.object
push eax
mov byte [esp + 0x68], 1
call dword [ecx + 0xbc]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x46d061
mov byte [esp + 0x5c], bl
jmp 0x46d1cf
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov edx, dword [eax]
push ecx
push eax
mov word [esp + 0x4c], 3
call dword [edx + 0x24]
mov edx, dword [esp + 0x28]
lea esi, [edx - 1]
cmp esi, ebx
jl 0x46d1bd
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x46d0a8
push 0x80004003
call fcn.00495b54
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x48]
push edx
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], edi
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x74]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ebp
mov ebp, dword [esp + 0x6c]
mov edx, esp
push eax
mov dword [edx], edi
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x78]
mov dword [edx + 8], esi
mov dword [edx + 0xc], ebp
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46d1ae
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4d021c
push eax
call dword [ecx]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46d1ae
push eax
call fcn.0043f8c0
add esp, 4
test eax, eax
je 0x46d1ae
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x60], 2
call fcn.00441fd0
cmp eax, ebx
jge 0x46d14d
cmp eax, 0x80004002
je 0x46d14d
push eax
call fcn.00495b54
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46d191
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x46d191
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46d191
add eax, 0xc
push str.D27CDB6E_AE6D_11cf_96B8_444553540000
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x46d211
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x5c], 1
cmp eax, ebx
je 0x46d1ae
mov edx, dword [eax]
push eax
call dword [edx + 8]
dec esi
jns 0x46d08a
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x5c], bl
cmp eax, ebx
je 0x46d1cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, ebp
mov dword [esp + 0x30], edi
jl 0x46d004
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 4
call fcn.00440530
mov edx, dword [esp + 0x38]
push edx
call fcn.00495c27
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 4
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ecx
mov dword [edx], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x5c], 1
cmp eax, ebx
je 0x46d239
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x5c], bl
cmp eax, ebx
je 0x46d24b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 3
call fcn.00440530
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call fcn.0047c270
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00495c27
add esp, 4
mov eax, 1
jmp 0x46d1fc