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

Disassembly:
sub esp, 0x74
mov eax, dword [edi + 0xc]
push ebx
mov ebx, dword [edi + 8]
push ebp
mov ebp, dword [edi + 4]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, ecx
cdq
sub eax, edx
push esi
mov esi, dword [edi + 0x10]
mov edx, dword [esi + 0xc]
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
push ecx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 1
call fcn.30152880
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.30152880
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
push edx
push eax
mov dword [ebp + 4], ecx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x34]
push ecx
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx]
push ebp
push esi
push eax
push edx
call fcn.30153c20
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x3014c2ce
mov eax, dword [esp + 0xc]
push 1
push eax
push ebx
call fcn.30152250
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebp
call fcn.30151140
mov ecx, dword [ebp + 0x14]
xor eax, eax
add esp, 0x18
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
jle 0x3014c292
lea ebx, [ebx]
push ebx
call fcn.302277c0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
mov dword [esp + 0x18], 0
jle 0x3014c1dd
lea esp, [esp]
mov eax, dword [edi + 0x38]
mov esi, dword [esp + 0x10]
movsx ecx, word [eax + esi*2]
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], ecx
call fcn.301523a0
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 4
ja case.default.0x3014c00a
jmp dword [eax*4 + 0x3014c2e8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
mov eax, dword [edi + 0x38]
push ecx
mov ecx, dword [edi + 0x34]
push edx
mov edx, dword [esp + 0x44]
push esi
push eax
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
call fcn.30154ac0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x3014c2ce
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
mov edx, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x8c]
push ecx
push edx
mov eax, ebx
lea ecx, [esp + 0x7c]
call fcn.3014b890
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x3014c2ce
jmp 0x3014c161
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
mov eax, dword [edi + 0x38]
push ecx
mov ecx, dword [edi + 0x34]
push edx
mov edx, dword [esp + 0x44]
push esi
push eax
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
call fcn.30154b50
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x3014c2ce
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x8c]
push ecx
lea ebx, [esp + 0x78]
call fcn.3014ba70
add esp, 0x28
jmp 0x3014c153
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
inc edx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
push 1
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x80]
push ecx
push eax
mov eax, ebx
lea ebx, [esp + 0x70]
call fcn.3014b720
add esp, 0x20
mov esi, eax
test esi, esi
jne 0x3014c2ce
mov ebx, dword [esp + 0x3c]
push ebx
call fcn.30152420
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov ecx, 0x10
add edx, ecx
mov dword [esp + 0x6c], edx
add dword [esp + 0x74], ecx
mov edx, dword [esp + 0x7c]
add eax, ecx
mov dword [esp + 0x70], eax
add dword [esp + 0x78], ecx
mov eax, 8
add edx, eax
mov dword [esp + 0x7c], edx
add dword [esp + 0x80], eax
add dword [esp + 0x54], ecx
add dword [esp + 0x58], ecx
add dword [esp + 0x5c], ecx
add dword [esp + 0x60], ecx
add dword [esp + 0x64], eax
mov edx, dword [esp + 0x68]
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
add esp, 4
inc edx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x3014bfe0
push ebx
call fcn.30152440
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
add ecx, eax
add edx, eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x74]
add edx, eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x80]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x58]
add ecx, eax
add edx, eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x60]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x68]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x14]
add eax, 0x10
add esp, 4
cmp eax, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], eax
jl 0x3014bfc0
mov edx, dword [esp + 0xc]
push edx
call fcn.3014fc20
push ebx
call fcn.301524f0
fild dword [esp + 0x3c]
mov ebp, dword [ebp + 0x20]
mov dword [esp + 0x54], ebp
fidiv dword [esp + 0x54]
add esp, 8
fcomp qword [str.333333]
fnstsw ax
test ah, 0x41
jne 0x3014c2ce
mov eax, dword [edi + 0x30]
push eax
push ebp
call fcn.30152660
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov esi, 0x2c
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret