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

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], edi
test ebx, ebx
jns 0x46e99e
cmp dword [edx + 0x104], esi
je 0x46e99e
cmp dword [edx + 0x118], eax
jne 0x46e99e
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x48], esi
jne 0x46e95b
cmp dword [esp + 0x4c], esi
jne 0x46e95b
xor eax, eax
jmp 0x46e960
mov eax, 1
lea esi, [esp + 0x3c]
push esi
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push ecx
push edx
call fcn.0049e910
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x46e992
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46e992
push eax
push ebp
call fcn.0046ed40
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp ebx, 0xffffffff
je 0x46ecec
test esi, esi
jne 0x46ecec
lea esi, [esp + 0x10]
push esi
push ebx
push ecx
push eax
push edx
call fcn.0049b070
mov edi, dword [esp + 0x24]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x46ecec
push edi
mov ebx, 4
call fcn.0044c6f0
mov esi, eax
add esp, 4
cmp esi, 0x64
jne 0x46ecec
push 1
push edi
mov dword [esp + 0x44], 0
call fcn.0044cd60
push 2
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call fcn.0044cd60
push 3
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
call fcn.0044cd60
push ebx
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
call fcn.0044d1e0
add esp, 0x20
mov dword [esp + 0x10], eax
test edi, edi
je 0x46ea70
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46ea44
push eax
call dword [0x506228]
add esp, 4
mov esi, dword [edi + 0x78]
test esi, esi
je 0x46ea5c
cmp bx, word [edi + 0x90]
jae 0x46ea5c
add esi, 0xa0
jmp 0x46ea75
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.00493db0
add esp, 8
mov esi, 0x4e9308
movzx ecx, word [esi + 8]
test cl, 0x12
je 0x46ead9
test ecx, 0x4000
je 0x46eac9
mov eax, dword [esi + 0xc]
add eax, dword [esi]
test eax, eax
jg 0x46ea99
test cl, 0x10
je 0x46eac9
mov eax, 1
push 1
push eax
push esi
call fcn.004c1830
add esp, 0xc
test eax, eax
jne 0x46eaf7
push dword [esi]
push eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi]
add esp, 0xc
add dword [esi + 0xc], eax
mov eax, 0xbdff
and word [esi + 8], ax
or word [esi + 8], 0x10
cmp dword [esi + 0xc], 0
je 0x46eaf7
mov ebx, dword [esi + 0x10]
jmp 0x46eb08
mov eax, ecx
and eax, 0x202
cmp eax, 0x202
jne 0x46eaf2
cmp byte [esi + 0xa], 1
jne 0x46eaf2
mov ebx, dword [esi + 0x10]
jmp 0x46eb08
test cl, 1
je 0x46eafb
xor ebx, ebx
jmp 0x46eb08
push 1
push esi
call fcn.004d04b0
add esp, 8
mov ebx, eax
test edi, edi
je 0x46eb45
mov eax, dword [edi]
mov ecx, dword [edi + 0x28]
cmp byte [eax + 0x51], 0
jne 0x46eb26
cmp ecx, 0xc0a
je 0x46eb26
mov eax, dword [eax + 0x44]
and eax, ecx
jmp 0x46eb2f
push eax
call fcn.00451600
add esp, 4
mov dword [edi + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x46eb45
push eax
call dword [0x506230]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x20]
or eax, edx
je 0x46ec4b
mov esi, dword [esp + 0x40]
test esi, esi
je 0x46ec4b
test ebx, ebx
je 0x46ec4b
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
neg eax
sbb eax, eax
and eax, ecx
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push ebx
push dword [esp + 0x54]
push esi
push dword [esp + 0x48]
call fcn.00470180
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x46ecec
cmp dword [esp + 0x48], eax
jne 0x46ebc0
cmp dword [esp + 0x4c], eax
jne 0x46ebc0
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 1]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jmp 0x46ebca
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea esi, [esp + 0x3c]
push esi
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edx
push ecx
push eax
mov eax, dword [ebp + 4]
inc eax
push eax
call fcn.0049e7f0
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x46ecec
mov ecx, dword [ebp + 4]
mov eax, ecx
and eax, 0x8000000f
jns 0x46ec0f
dec eax
or eax, 0xfffffff0
inc eax
jne 0x46ec36
mov ebx, dword [ebp]
lea esi, [ecx*4 + 0x40]
call fcn.004cd510
test eax, eax
jne 0x46ec6b
push eax
push esi
push ebx
call fcn.004ae1d0
add esp, 0xc
test eax, eax
je 0x46ec6b
mov dword [ebp], eax
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x3c]
mov dword [ecx + edx*4], eax
inc dword [ebp + 4]
jmp 0x46e9ce
cmp dword [esp + 0x48], 0
jne 0x46ebc8
cmp dword [esp + 0x4c], 0
jne 0x46ebc8
mov eax, 1
jmp 0x46ebca
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x46ecde
cmp dword [esi + 0x38], 0
jne 0x46ec84
push dword [esi + 0x40]
call fcn.00443690
add esp, 4
cmp byte [esi + 5], 0
jne 0x46ec95
push dword [esi + 0x28]
call fcn.00443690
add esp, 4
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x46ecde
mov ebp, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46ecb7
push eax
call dword [0x506228]
add esp, 4
push ebx
push ebp
call fcn.00491cd0
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x46ecd2
push eax
call dword [0x506230]
add esp, 4
push dword [esp + 0x3c]
call fcn.0044d670
add esp, 4
push esi
call fcn.00443690
add esp, 4
mov esi, 7
push edi
call fcn.0044d760
add esp, 4
cmp esi, 0x65
je 0x46ecfc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret