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

Disassembly:
mov eax, 0x425a18
call fcn.01311be9
sub esp, 0x18
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x7c]
test eax, eax
jbe 0x12f7b5a
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [esi + 0x78]
shl ecx, 2
mov edi, dword [ecx + eax]
mov eax, dword [esi + 8]
add eax, ecx
mov cl, byte [esi + 0x60]
test cl, cl
je 0x12f7afd
mov dword [ebp - 0x18], 1
jmp 0x12f7b02
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
test cl, cl
je 0x12f7b0d
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x12f7b14
mov dword [ebp - 0x14], 1
lea ebx, [edi + 0x70]
mov ecx, ebx
call fcn.012f7f2c
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x12f7b34
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.012f7f09
dec dword [ebp - 0x18]
jne 0x12f7b28
add edi, 0x7c
mov ecx, edi
call fcn.012f7f2c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jbe 0x12f7b4f
mov ecx, edi
call fcn.012f7f09
dec ebx
jne 0x12f7b45
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x7c]
jb 0x12f7ada
and dword [ebp - 0x10], 0
cmp dword [esi + 0x18], 0
jbe 0x12f7c8e
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi + 0x30]
lea edx, [eax + ecx*8]
mov ecx, dword [esi + 0x3c]
mov eax, dword [edx]
mov ecx, dword [ecx + eax*4]
sub eax, dword [edi + ecx*4]
mov edi, eax
mov al, byte [esi + 0x60]
test al, al
je 0x12f7b90
mov ebx, dword [edx + 4]
mov dword [ebp - 0x1c], ebx
jmp 0x12f7b93
mov dword [ebp - 0x1c], ecx
test al, al
jne 0x12f7b9a
mov ecx, dword [edx + 4]
mov dl, al
mov ebx, ecx
neg dl
sbb edx, edx
not edx
and edx, edi
neg al
sbb eax, eax
mov dword [ebp - 0x20], edx
and eax, edi
mov edi, eax
mov eax, dword [esi + 0x78]
shl ebx, 2
mov dword [ebp - 0x24], edi
mov ecx, dword [ebx + eax]
mov ecx, dword [ecx + 0x7c]
mov ecx, dword [ecx + edi*4]
mov edi, dword [ebp - 0x1c]
shl edi, 2
push ecx
mov eax, dword [edi + eax]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x6c]
push dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
mov ecx, eax
call fcn.012f5ab1
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0x78]
mov byte [ebp - 4], 1
mov edi, dword [edi + eax]
mov eax, dword [edi + 0x18]
cmp eax, ecx
jne 0x12f7c08
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
mov edi, 0x427448
push edx
push edi
push eax
call dword [ecx]
mov eax, dword [esi + 0x78]
mov ebx, dword [ebx + eax]
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x12f7c27
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push edi
push eax
call dword [ecx]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x12f7c5d
cmp dword [ebp - 0x14], 0
je 0x12f7c5d
mov ecx, dword [eax]
mov edi, 0x80000
push edi
push dword [ebp - 0x20]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push edi
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
and byte [ebp - 4], 0
test ecx, ecx
je 0x12f7c71
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x12f7c7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x18]
jb 0x12f7b68
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x78]
cmp byte [esi + 0x60], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
je 0x12f7cae
mov eax, dword [eax + 0x70]
push dword [ebx]
mov ecx, dword [eax]
call fcn.012f5687
jmp 0x12f7cbd
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push dword [ecx]
mov ecx, dword [eax]
call fcn.012f5687
xor edi, edi
cmp dword [esi + 0x24], edi
jbe 0x12f7d16
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x30]
mov eax, dword [eax + edi*4]
mov ecx, dword [ecx + eax*4]
shl ecx, 2
sub eax, dword [ecx + edx]
mov edx, dword [esi + 0x78]
cmp byte [esi + 0x60], 0
mov ecx, dword [ecx + edx]
je 0x12f7d00
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [edx + ebx]
mov ecx, dword [ecx + eax*4]
call fcn.012f5687
jmp 0x12f7d0d
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx + eax*4]
call fcn.012f5687
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x12f7ccc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8