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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xbc
push ebx
mov ebx, ecx
push esi
push edi
cmp eax, 0xffffffff
jne 0x46cf26
lea eax, [esp + 0x78]
push eax
call fcn.0046d2b0
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x46cf37
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
movzx ecx, byte [ebx + 1]
test ecx, ecx
je 0x46cf37
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [0x4f5b3c]
jbe 0x46cf5b
push 0x4cd2cc
push 0
push 0x4eb5e0
mov ecx, ebx
call fcn.0043bc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [0x4f8460]
cmp eax, edi
jbe 0x46cfeb
shr eax, 0xe
test dword [ebp + 0xc], 0x3fff
lea edi, [eax + 1]
cmove edi, eax
mov eax, dword [0x4f8464]
shl edi, 0xe
test eax, eax
je 0x46cfa0
push eax
call fcn.004b113e
add esp, 4
cmp dword [0x4f8460], 0x400000
jbe 0x46cfa0
dec dword [0x4f845c]
lea eax, [edi + edi]
push eax
call fcn.004af8fa
mov esi, eax
add esp, 4
mov dword [0x4f8464], esi
test esi, esi
jne 0x46cfd8
push 0x4cd2cc
push eax
push str.Out_of_memory.
mov ecx, ebx
mov dword [0x4f8460], eax
call fcn.0043bc60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp edi, 0x400000
jbe 0x46cff1
inc dword [0x4f845c]
jmp 0x46cff1
mov esi, dword [0x4f8464]
mov dl, byte [ebx + 1]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [0x4f8464], 0
mov dword [0x4f8460], 0
test dl, dl
jne 0x46d027
mov dword [0x4f90f0], 0
jmp 0x46d201
mov ecx, dword [esp + 0x14]
xor edi, edi
sub ecx, eax
mov dh, dl
mov dword [esp + 0x18], ecx
test dl, dl
je 0x46d1a3
xor ecx, ecx
mov dword [esp + 0x20], ecx
add ecx, dword [ebx + 8]
cmp byte [ecx + 1], 0
je 0x46d0a1
push dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
mov ecx, ebx
mov dword [0x4f90f0], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
xor eax, eax
cmp byte [ebx], 0x67
cmove eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.0046a4f0
mov dword [esp + edi*4 + 0x28], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x46d2a6
mov esi, dword [esp + 0xc]
jmp 0x46d187
mov dh, byte [ecx]
cmp dh, 2
jne 0x46d0b5
mov dword [esp + edi*4 + 0x28], 0x4cd2cc
jmp 0x46d187
mov eax, dword [esp + edi*4 + 0x78]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x46d10d
movzx eax, dl
cmp edi, eax
jge 0x46d0d8
test dh, dh
jne 0x46d0e4
mov eax, dword [ecx + 8]
test eax, eax
je 0x46d0d8
cmp dword [eax], 0
jne 0x46d0e9
mov eax, dword [ecx + 4]
mov dword [esp + edi*4 + 0x28], eax
jmp 0x46d187
cmp dh, 1
jne 0x46d0d8
push 0
push edi
push esi
mov ecx, ebx
mov dword [esp + edi*4 + 0x34], esi
call fcn.0046d520
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x46d187
xor ebx, ebx
jmp 0x46d231
lea ecx, [esp + 0x78]
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0046d420
sub eax, 3
je 0x46d16f
sub eax, 1
jne 0x46d106
mov cl, byte [ebx]
lea eax, [ecx - 1]
cmp al, 6
ja 0x46d133
cmp edi, 1
je 0x46d147
cmp cl, 0x17
ja 0x46d13d
cmp cl, 0xf
jae 0x46d147
cmp cl, 0x6e
je 0x46d147
cmp cl, 0x70
jne 0x46d167
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx + 0x17]
test al, al
jne 0x46d158
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x46d167
mov eax, 0x4cd2cc
mov dword [esp + edi*4 + 0x28], eax
jmp 0x46d187
xor eax, eax
mov dword [esp + edi*4 + 0x28], eax
jmp 0x46d187
mov ecx, dword [esp + 0x1c]
push esi
mov dword [esp + edi*4 + 0x2c], esi
call fcn.00496410
lea esi, [esi + eax*2]
add esi, 2
mov dword [esp + 0xc], esi
mov dl, byte [ebx + 1]
inc edi
mov ecx, dword [esp + 0x20]
mov dh, dl
add ecx, 0x10
movzx eax, dl
mov dword [esp + 0x20], ecx
cmp edi, eax
jl 0x46d043
xor esi, esi
test dl, dl
je 0x46d1d5
nop dword [eax]
cmp dword [esp + esi*4 + 0x28], 0
jne 0x46d1c8
mov ecx, dword [esp + esi*4 + 0x78]
push 0
push 1
call fcn.00401530
mov dword [esp + esi*4 + 0x28], eax
mov dl, byte [ebx + 1]
inc esi
movzx eax, dl
mov dh, dl
cmp esi, eax
jl 0x46d1b0
movzx eax, dl
test dl, dl
je 0x46d201
shl eax, 2
lea esi, [esp + 0x78]
mov ecx, eax
mov edi, 0x4f90f0
shr ecx, 2
mov dl, dh
rep movsd dword es:[edi], dword [esi]
shr eax, 2
lea esi, [esp + 0x28]
mov ecx, eax
mov edi, 0x4f9148
rep movsd dword es:[edi], dword [esi]
movzx ecx, byte [ebx]
mov ebx, 1
lea eax, [ecx*8]
sub eax, ecx
movsx ecx, byte [eax*2 + 0x4f4db5]
movzx eax, dl
cmp eax, ecx
jge 0x46d231
lea edi, [eax*4 + 0x4f9148]
sub ecx, eax
mov eax, 0x4cd2cc
rep stosd dword es:[edi], eax
cmp dword [esp + 0x10], 0
je 0x46d26e
mov eax, dword [0x4f8464]
test eax, eax
je 0x46d25c
push eax
call fcn.004b113e
add esp, 4
cmp dword [0x4f8460], 0x400000
jbe 0x46d25c
dec dword [0x4f845c]
mov eax, dword [esp + 0x10]
mov dword [0x4f8464], eax
mov eax, dword [esp + 0x14]
mov dword [0x4f8460], eax
cmp dword [0x4f8460], 0x400000
jbe 0x46d29b
push 0x4496a0
push 0x2710
push 0xd
push dword [0x4f78ec]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4f7997]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esp + 0x24]
jmp 0x46d231