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

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0xac]
cmp dword [esi + 0x10], 0
push edi
je 0x12e165
cmp dword [ebp + 0x18], 0
jne 0x12e16f
mov eax, dword [esp + 0xbc]
push eax
push ecx
mov edi, ebp
call fcn.0012dc70
test eax, eax
mov dword [ebp + 0x18], eax
je 0x12e165
mov edx, dword [esp + 0xb8]
mov dword [esi + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x12e643
cmp dword [esi + 0x10], 0
je 0x12e643
cmp dword [ebp + 0x14], 0
jne 0x12e189
cmp dword [ebp + 4], 0
je 0x12e643
mov ebx, dword [esp + 0xb4]
lea edx, [ebx + 0x204]
add ebx, 0x234
mov esi, edx
mov ecx, 0xc
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x60], ecx
mov edi, edx
mov dword [esp + 0x64], eax
lea eax, [ebp + 0x74]
mov ecx, 0xc
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
xor ecx, dword [ebx]
mov dword [esp + 0x4c], edx
and ecx, 1
xor dword [ebx], ecx
mov ecx, dword [ebx]
mov edx, dword [eax]
xor edx, ecx
and edx, 2
xor edx, ecx
mov dword [ebx], edx
cmp dword [ebp + 0x70], 0
mov dword [esp + 0x48], ebx
je 0x12e20d
call fcn.0012e0e0
jmp 0x12e20f
xor eax, eax
mov ecx, dword [esp + 0xb4]
mov dword [ecx + 0x240], eax
cmp dword [ebp + 0x54], 0
lea ecx, [ebp + 0x28]
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
jne 0x12e250
cmp dword [ebp + 0x5c], 0
jne 0x12e250
cmp dword [ebp + 0x58], 0
je 0x12e3b7
mov esi, dword [ebp + 0x5c]
neg esi
sbb esi, esi
and esi, 3
add esi, 9
cmp dword [ebp + 0x58], 0
je 0x12e266
mov esi, dword [ebp + 0x50]
mov ecx, edi
sub ecx, dword [esp + 0x18]
cmp eax, 0x5a
mov dword [esp + 0x10], ecx
je 0x12e286
cmp eax, 0x10e
je 0x12e286
mov dword [esp + 0x14], 0
jmp 0x12e294
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
sub ecx, edx
imul ecx, esi
shr ecx, 4
cmp dword [esp + 0x14], 0
jne 0x12e2ab
mov eax, dword [esp + 0x24]
sub eax, ecx
sub eax, edx
jmp 0x12e2b3
mov eax, edi
sub eax, ecx
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
xor eax, eax
test ecx, ecx
jge 0x12e2fa
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x12e2d3
mov eax, dword [esp + 0x10]
shl eax, 4
xor edx, edx
div esi
mov edx, eax
mov eax, edi
sub eax, edx
mov edx, dword [esp + 0x18]
sub eax, edx
shr eax, 1
test eax, eax
jle 0x12e2fe
sub edi, eax
add edx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
jmp 0x12e2fe
mov edx, dword [esp + 0x18]
test ecx, ecx
jle 0x12e31f
cmp dword [esp + 0x14], 0
jne 0x12e313
add dword [esp + 0x1c], ecx
sub dword [esp + 0x24], ecx
jmp 0x12e31f
sub edi, ecx
add edx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
cmp dword [ebp + 0x14], 0
jne 0x12e3b7
test ecx, ecx
jg 0x12e335
test eax, eax
jle 0x12e3b7
cmp dword [esp + 0x14], 0
mov al, 0x80
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
lea eax, [ebp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0xff
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
je 0x12e396
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + edx*4 + 4]
push ecx
push eax
lea edi, [esp + 0x40]
lea eax, [esp + 0x70]
call fcn.00100a40
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0xbc]
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov edx, dword [ebp + 0x44]
test dl, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
je 0x12e4c0
sub ecx, esi
sub edi, eax
test ecx, ecx
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
jge 0x12e3fb
fadd qword [0x41bcb8]
fmul qword [ebp + 0x48]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fadd qword [0x41bc70]
or ah, 0xc
test edi, edi
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], eax
fldcw word [esp + 0x14]
fild dword [esp + 0x38]
jge 0x12e43a
fadd qword [0x41bcb8]
fmul qword [ebp + 0x48]
and edx, 0xf
fnstcw word [esp + 0x14]
add edx, 0xfffffffe
movzx eax, word [esp + 0x14]
fadd qword [0x41bc70]
or ah, 0xc
cmp edx, 3
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp qword [esp + 0x38]
mov eax, dword [esp + 0x38]
fldcw word [esp + 0x14]
ja case.default.0x12e46e
jmp dword [edx*4 + 0x12e650]
sub ecx, dword [esp + 0x10]
add esi, ecx
jmp 0x12e49d
sub edi, eax
add dword [esp + 0x2c], edi
jmp case.default.0x12e46e
sub ecx, dword [esp + 0x10]
sub edi, eax
jmp 0x12e497
sub ecx, dword [esp + 0x10]
sub edi, eax
shr ecx, 1
shr edi, 1
add esi, ecx
add dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
add ecx, esi
add eax, edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xbc], eax
cmp dword [ebp + 0x14], 0
je 0x12e4f2
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [ecx + 0x4c88]
push eax
push edx
lea eax, [esp + 0x28]
call fcn.000fbe10
jmp 0x12e60b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + ecx*4 + 4]
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc0]
push edx
push eax
push ecx
mov ecx, dword [ebp]
call fcn.001b2690
cmp dword [ebp + 0x20], 0
je 0x12e541
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x24]
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebp + edx*4 + 4]
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [ebp]
push ecx
add edx, 0x20
push edx
push eax
call fcn.001a7ff0
mov esi, dword [0x4e73e0]
mov ebx, dword [ebp + 0x38]
add esi, 8
mov eax, 7
call fcn.000b6530
mov ecx, dword [ebp + 0x40]
mov esi, dword [0x4e73e0]
mov eax, dword [esi + 0x94]
lea edx, [ecx*8 + 0x300]
or edx, 0x8e000
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + ecx*4 + 4]
call fcn.00069fd0
mov edx, dword [esi + 0x94]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x94]
mov ecx, dword [ebp + 0x3c]
mov dword [eax + 8], ecx
lea eax, [esi + 8]
mov ecx, 3
call fcn.0006a150
mov eax, dword [0x4e73e0]
add eax, 8
test byte [eax + 0xb8], 8
jne 0x12e5d7
mov edx, dword [eax + 0x90]
mov ecx, dword [eax + 0x8c]
cmp edx, ecx
je 0x12e5d7
sub ecx, edx
cmp ecx, 0x400
sbb edx, edx
add edx, 1
push edx
call fcn.000b5bd0
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + ecx*4 + 4]
push 0
mov eax, 0xe
call fcn.00090c40
mov eax, dword [ebp + 0x10]
xor edx, edx
add eax, 4
mov ecx, 3
div ecx
mov ebx, dword [esp + 0x48]
mov dword [ebp + 0x10], edx
xor edx, edx
cmp dword [ebp + 0x40], edx
sete dl
mov dword [ebp + 0x40], edx
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov dword [ebx], eax
mov eax, dword [esp + 0x5c]
mov ecx, 0xc
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x64]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x14