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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x60
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x4941e3
call fcn.00492d50
xor ecx, ecx
cmp eax, 7
sete cl
inc ecx
mov dword [esp + 0x74], ecx
mov esi, dword [esp + 0x78]
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.004930a0
mov eax, dword [esp + 0x2c]
push 0
push eax
call fcn.004938c0
mov edx, dword [esp + 0x30]
movzx eax, al
lea ecx, [eax + eax*2]
add esp, 8
lea eax, [edx + ecx*4]
mov di, word [eax*2 + 0x506070]
add di, word [esp + 0x24]
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.004930a0
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x494257
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
xor edx, edx
mov dx, word [esi + 8]
push edx
call fcn.00492100
add eax, 2
cdq
mov ecx, 7
add esp, 4
idiv ecx
mov word [esi + 0x18], dx
movzx ebx, word [esi + 0x18]
call fcn.004920c0
neg eax
mov dword [esp + 0x10], eax
call fcn.004920c0
neg eax
lea edx, [esp + 0x78]
mov dword [esp + 0x78], eax
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.004930a0
mov eax, dword [eax + 0x10]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
push 1
lea ecx, [esp + 0x30]
call fcn.00493ce0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x1c]
call fcn.004930a0
mov esi, eax
cmp word [esi + 0x18], 7
jne 0x4942e0
mov ecx, dword [esi + 0xc]
xor eax, eax
mov ax, word [esi + 8]
push eax
mov eax, dword [esi + 0x10]
call fcn.00492100
add eax, 2
cdq
mov ecx, 7
add esp, 4
idiv ecx
mov word [esi + 0x18], dx
cmp dword [esp + 0x74], 2
movzx esi, word [esi + 0x18]
jne 0x49431f
movzx ecx, di
sub ecx, ebx
add ecx, 7
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 3
je 0x494314
cmp esi, 4
jne 0x494410
pop edi
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x60
ret 8
test esi, esi
jne 0x49432a
mov esi, 6
jmp 0x49432b
dec esi
test ebx, ebx
jne 0x494336
mov ebx, 6
jmp 0x494337
dec ebx
cmp esi, 4
jge 0x494380
movzx edx, di
sub edx, ebx
lea ecx, [edx + esi + 6]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x35
jne 0x494410
movzx ecx, word [esp + 0x24]
sub ecx, ebx
cmp ecx, 0x1c
jle 0x494410
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret 8
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4943f4
movzx eax, word [esp + 0x24]
mov edx, 8
sub edx, esi
cmp eax, edx
jge 0x4943f4
call fcn.004920c0
neg eax
mov dword [esp + 0x78], eax
call fcn.004920c0
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x58]
neg eax
push edx
mov ecx, ebp
mov dword [esp + 0x7c], eax
call fcn.004930a0
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x78]
push ecx
push 1
push 0
push 0
push 0
push 0
dec eax
push eax
push 0xb
push 0x1f
lea ecx, [esp + 0x38]
call fcn.00493ff0
mov ecx, eax
call fcn.004941c0
pop edi
pop esi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x60
ret 8
movzx edx, di
sub edx, ebx
lea ecx, [edx + esi - 1]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8