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

Disassembly:
push 0xffffffffffffffff
push 0x4f3d79
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x52f4a8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov edi, ecx
mov esi, edx
xor ebp, ebp
push 0x50d1b0
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebp
call fcn.00401f40
mov ebx, 1
mov dword [esp + 0x84], ebx
cmp esi, ebp
jne 0x46fa08
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00406080
mov byte [esp + 0x84], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x20], ebx
jb 0x46f9e9
mov edx, dword [esp + 0x3c]
push edx
call fcn.00476980
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
call fcn.00401050
jmp 0x46fc3e
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fa10
sub eax, edx
mov ebx, eax
mov byte [esp + 0x14], cl
xor eax, eax
mov ecx, ebx
and ecx, 0x8000000f
mov dword [esp + 0x2c], ebx
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
jns 0x46fa3d
dec ecx
or ecx, 0xfffffff0
inc ecx
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
mov ebp, eax
sar ebp, 4
mov dword [esp + 0x28], ecx
test ebp, ebp
jle 0x46fafc
mov ebx, esi
mov dword [esp + 0x24], ebp
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], eax
push ecx
lea eax, [esp + 0x68]
mov dword [esp + 0x70], edx
call fcn.0046ee20
xor edi, edi
lea ecx, [ecx]
movzx edx, byte [esp + edi + 0x54]
push edx
lea eax, [esp + 0x18]
push str._02X
push eax
call fcn.004793a0
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fac0
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
call fcn.00407800
inc edi
cmp edi, 0x10
jl 0x46faa0
add ebx, 0x10
sub dword [esp + 0x24], 1
jne 0x46fa5c
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
test ecx, ecx
jg 0x46fb08
test ebx, ebx
jne 0x46fb8f
xor eax, eax
push ecx
shl ebp, 4
add ebp, esi
lea edx, [esp + 0x68]
push ebp
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.00486530
mov esi, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
call fcn.0046ee20
xor esi, esi
movzx ecx, byte [esp + esi + 0x54]
push ecx
lea edx, [esp + 0x18]
push str._02X
push edx
call fcn.004793a0
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fb71
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
call fcn.00407800
inc esi
cmp esi, 0x10
jl 0x46fb52
cmp dword [esp + 0x34], 0xfffffffd
mov dword [edi], 0
jne 0x46fba2
mov dword [edi], 0xfffffffd
push 0xffffffffffffffff
mov byte [esp + 0x88], 2
push 0
lea ecx, [esp + 0x3c]
mov esi, 0xf
push ecx
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], 0
mov ecx, edi
mov byte [edi + 8], 0
call fcn.00401ff0
mov byte [esp + 0x84], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x20], 1
jb 0x46fbf1
mov edx, dword [esp + 0x3c]
push edx
call fcn.00476980
add esp, 4
mov dword [esp + 0x50], esi
xor esi, esi
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
call fcn.00474230
mov eax, dword [esp + 0x34]
cmp eax, 0xfffffffd
je 0x46fc35
cmp eax, esi
je 0x46fc31
jmp 0x46fc20
mov dword [eax], esi
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
cmp eax, esi
jne 0x46fc20
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x18]
call fcn.00474270
mov eax, edi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00476680
add esp, 0x74
ret 4