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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cac
call 0x4c82e0
inc dword [0x492408]
cmp dword [0x492408], 0x30
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
jl 0x46a62e
push dword [ebp + 0x14]
push 0x46e670
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00469e14
dec dword [0x492408]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
and dword [esp + 0x14], 0
lea eax, [esp + 0x38]
mov byte [esp + 0x11], 1
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 0
call fcn.0046ee91
push dword [ebp + 8]
lea esi, [esp + 0x2c]
call fcn.00463583
mov eax, esi
push eax
mov eax, 0x2000
lea ecx, [esp + 0x3c]
call fcn.0046eedd
mov bl, al
neg bl
mov ecx, esi
sbb bl, bl
call fcn.00463604
inc bl
je 0x46a6a1
push dword [ebp + 0x14]
push 0x46e6f8
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call fcn.00469e14
xor bl, bl
lea eax, [esp + 0x38]
call fcn.0046eebd
dec dword [0x492408]
mov al, bl
jmp 0x46a625
lea eax, [esp + 0x490]
push eax
mov esi, 0x104
push esi
call dword [fcn.0046b328]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x74]
push eax
push esi
push dword [ebp + 8]
call dword [fcn.0046b31c]
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x8ac]
push eax
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
call 0x4b969e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x284]
push eax
call 0x4b71f7
lea eax, [esp + 0x6a8]
push eax
lea eax, [esp + 0x28c]
push eax
call 0x4b71c6
add esp, 0x10
lea eax, [esp + 0x280]
push eax
call dword [fcn.0046b320]
cmp byte [esp + 0x12], 1
jne 0x46a8b2
lea ebx, [esp + 0xcb8]
lea eax, [esp + 0x38]
call fcn.0046f424
test al, al
je 0x46a8b2
inc dword [esp + 0x14]
mov esi, ebx
call fcn.0046a433
mov eax, ebx
call fcn.0046a468
test al, al
je 0x46a890
mov edi, ebx
call fcn.0046a405
mov eax, edi
push eax
xor bl, bl
call 0x4b6e51
mov esi, eax
pop ecx
cmp esi, 2
jle 0x46a7b2
mov ax, word [esp + esi*2 + 0xcb4]
and ax, 0x7f
movzx eax, ax
push eax
call 0x4b8eb5
pop ecx
test eax, eax
je 0x46a7b2
lea eax, [esp + esi*2 + 0xcb6]
cmp word [eax], 0x5f
jne 0x46a7b2
xor ecx, ecx
mov word [eax], cx
inc bl
cmp byte [esp + 0x13], 1
mov esi, dword [esp + 0x18]
jne 0x46a82a
cmp dword [esi + 0x10], 0
je 0x46a87b
mov eax, dword [esi + 0xc]
push dword [eax]
call 0x4b6e51
mov edi, eax
pop ecx
lea eax, [esp + 0xcb8]
push eax
call 0x4b6e51
pop ecx
xor ecx, ecx
push 2
lea eax, [eax + edi + 1]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x4b7267
mov edi, eax
mov eax, dword [esi + 0xc]
pop ecx
push dword [eax]
push edi
call 0x4b71f7
lea eax, [esp + 0xcc0]
push eax
push edi
call 0x4b71c6
mov eax, dword [esi + 0xc]
push dword [eax]
call 0x4b6e6c
mov eax, dword [esi + 0xc]
add esp, 0x14
mov dword [eax], edi
jmp 0x46a87b
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x78]
push eax
push esi
lea ecx, [esp + 0xcc8]
call fcn.0046a8dc
test eax, eax
je 0x46a876
cmp eax, 1
jle 0x46a87b
cmp eax, 3
jle 0x46a860
cmp eax, 4
jne 0x46a87b
mov byte [esp + 0x12], 0
jmp 0x46a87b
push dword [ebp + 0xc]
lea eax, [esp + 0xcbc]
push eax
push dword [esp + 0x1c]
call fcn.0046a0b1
jmp 0x46a87b
mov byte [esp + 0x11], 0
cmp bl, 1
sete byte [esp + 0x13]
cmp byte [esp + 0x11], 1
je 0x46a72e
jmp 0x46a8b2
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xcb8]
push eax
push 0x46e728
push dword [esp + 0x1c]
push dword [ebp + 0x10]
call fcn.00469e14
mov byte [esp + 0x11], 0
lea esi, [esp + 0x38]
call fcn.0046f748
and dword [esp + 0x64], 0
and dword [esp + 0x68], 0
lea eax, [esp + 0x490]
push eax
call dword [fcn.0046b320]
mov bl, byte [esp + 0x11]
jmp 0x46a68e