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

Disassembly:
push 0xffffffffffffffff
push 0x4a3c68
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4d1968]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x4d1968]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x88]
mov ebp, dword [esp + 0x8c]
mov eax, 0x61
xor ecx, ecx
lea edx, [esp + 0x12]
mov word [esp + 0x10], ax
push edx
mov word [esp + 0x16], cx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x28], ebp
call fcn.0046ae10
lea eax, [esp + 0x10]
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b020
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push edx
push eax
push 0
lea ecx, [esp + 0x30]
call fcn.004077d0
xor ecx, ecx
test eax, eax
jne 0x46b06a
cmp dword [esp + 0x38], 8
mov word [ebp], cx
jb 0x46b063
mov edx, dword [esp + 0x24]
push edx
call fcn.00423123
add esp, 4
xor eax, eax
jmp 0x46b301
mov eax, 0x41
lea edx, [esp + 0x16]
mov word [esp + 0x14], ax
push edx
mov word [esp + 0x1a], cx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.0046ae10
mov edx, 0x3b
xor eax, eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], dx
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
mov byte [esp + 0x8c], 1
call fcn.0046ae10
mov ecx, dword [esp + 0x34]
xor esi, esi
mov byte [esp + 0x80], 2
test ecx, ecx
jl 0x46b11f
cmp esi, dword [esp + 0x50]
jg 0x46b11f
cmp esi, ecx
jbe 0x46b0e3
call fcn.0044a2c1
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov edi, dword [esp + 0x24]
jae 0x46b0f2
lea edi, [esp + 0x24]
cmp esi, dword [esp + 0x50]
jbe 0x46b101
call fcn.0044a2c1
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x46b110
lea eax, [esp + 0x40]
mov dx, word [edi + esi*2]
cmp dx, word [eax + esi*2]
jne 0x46b11f
inc esi
cmp esi, ecx
jle 0x46b0d0
sub esi, 1
jns 0x46b18c
xor eax, eax
cmp dword [esp + 0x70], 8
mov word [ebp], ax
jb 0x46b13e
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00423123
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], dx
jb 0x46b168
mov eax, dword [esp + 0x40]
push eax
call fcn.00423123
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov word [esp + 0x40], cx
jb 0x46b2fc
mov edx, dword [esp + 0x24]
push edx
jmp 0x46b2f4
cmp esi, ecx
jbe 0x46b199
call fcn.0044a2c1
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x46b1a8
lea eax, [esp + 0x24]
movzx edi, word [eax + esi*2]
test esi, esi
je 0x46b241
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00468a40
lea ecx, [esp + 0x28]
push edi
push ecx
mov ebp, eax
call fcn.00468a40
add esp, 0x10
cmp eax, ebp
jne 0x46b239
lea edx, [esp + 0x58]
push edi
push edx
call fcn.00468a40
mov ebp, eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00468a40
add esp, 0x10
cmp eax, ebp
jne 0x46b239
mov ecx, dword [esp + 0x1c]
mov word [ecx], di
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 1
call fcn.00402ef0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00402ef0
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00402ef0
mov eax, 2
jmp 0x46b301
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x50]
jne 0x46b28f
cmp ecx, dword [esp + 0x6c]
jne 0x46b28f
inc esi
lea ecx, [esp + 0x58]
mov word [ebp], si
mov byte [esp + 0x80], 1
call fcn.00402ef0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call fcn.00402ef0
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], 0xffffffff
call fcn.00402ef0
mov eax, 1
jmp 0x46b301
xor edx, edx
cmp dword [esp + 0x70], 8
mov word [ebp], dx
jb 0x46b2a9
mov eax, dword [esp + 0x5c]
push eax
call fcn.00423123
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x54], 8
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
jb 0x46b2d5
mov edx, dword [esp + 0x40]
push edx
call fcn.00423123
add esp, 4
xor eax, eax
cmp dword [esp + 0x38], 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
jb 0x46b2fc
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00423123
add esp, 4
mov eax, 3
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00446530
add esp, 0x74
ret