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

Disassembly:
sub esp, 0x13c
cmp dword [ebx + 0x13c], 0
push ebp
mov ebp, dword [esp + 0x144]
push esi
push edi
mov edi, ebx
mov dword [esp + 0x1c], edi
je 0x19f9ca
mov eax, dword [ebx + 0x14c]
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
add eax, 0x234
lea ecx, [ebx + 0x234]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [ecx + 0x14]
mov dword [eax + 0x14], ecx
test byte [ebx + 0x250], 8
jne 0x19fbda
mov ecx, ebx
call fcn.00091310
cmp dword [edi + 0x2d0], 0
mov dword [esp + 0x14], eax
je 0x19fa01
mov eax, dword [edi + 0x2e0]
add eax, dword [edi + 0x2d8]
xor edx, edx
div dword [edi + 0x12c]
jmp 0x19fa14
mov eax, dword [edi + 0x128]
cmp eax, 1
mov dword [esp + 0x10], 1
jb 0x19fa18
mov dword [esp + 0x10], eax
test byte [ebx + 0x234], 8
je 0x19fa29
shr dword [esp + 0x14], 1
shr dword [esp + 0x10], 1
mov esi, dword [esp + 0x150]
cmp dword [esi + 0x10], 0
je 0x19fa73
mov esi, dword [esi + 4]
mov ecx, ebx
call fcn.00091370
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00091370
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x19fa6c
mov edx, dword [esp + 0x150]
mov ecx, dword [edx + 4]
call fcn.00091310
cmp eax, dword [esp + 0x14]
jae 0x19fbe8
mov esi, dword [esp + 0x150]
mov dword [esp + 0x18], 0
add esi, 0xc
mov edi, edi
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push eax
mov ecx, ebx
call fcn.00091370
push eax
push 0x59595959
lea eax, [esi - 8]
push eax
push ebp
call fcn.001095b0
cmp dword [edi + 0x138], 0
jne 0x19fab8
cmp dword [edi + 0x13c], 0
je 0x19fb52
mov eax, dword [edi + 0x12c]
cmp eax, 1
jb 0x19fb52
cmp eax, 2
jne 0x19fb52
cmp dword [edi + 0x2d0], 0
je 0x19faef
mov eax, dword [edi + 0x2dc]
add eax, dword [edi + 0x2d4]
xor edx, edx
div dword [edi + 0x124]
jmp 0x19faff
mov eax, dword [edi + 0x120]
cmp eax, 1
jae 0x19faff
mov eax, 1
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push ecx
push eax
push 0x56555655
push esi
push ebp
call fcn.001095b0
mov eax, dword [esi]
test eax, eax
je 0x19fba7
mov dword [eax + 0x140], 1
mov edi, dword [esi]
cmp dword [edi + 0x140], 0
mov eax, 2
mov dword [edi + 0x124], eax
mov dword [edi + 0x12c], eax
jne 0x19fba3
mov ecx, edi
call fcn.00091310
shr eax, 1
jmp 0x19fb9d
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push edx
mov ecx, ebx
call fcn.00091370
shr eax, 1
push eax
push 0x56555655
push esi
push ebp
call fcn.001095b0
mov edi, dword [esi]
test edi, edi
je 0x19fba3
cmp dword [edi + 0x140], 0
mov dword [edi + 0x124], 2
mov dword [edi + 0x12c], 1
jne 0x19fba3
mov ecx, edi
call fcn.00091310
mov dword [edi + 0x128], eax
mov edi, dword [esp + 0x1c]
cmp dword [esi - 8], 0
je 0x19fbda
cmp dword [esi], 0
je 0x19fbda
mov eax, dword [esp + 0x18]
add eax, 1
add esi, 4
cmp eax, 2
mov dword [esp + 0x18], eax
jb 0x19fa80
mov eax, dword [esp + 0x150]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
jmp 0x19fbef
mov eax, ebx
pop edi
pop esi
pop ebp
add esp, 0x13c
ret 0xc
mov eax, dword [esp + 0x150]
mov ecx, dword [0x4e73e0]
or byte [ecx + 0x28399], 2
mov ecx, dword [ecx + 0x283a4]
test ecx, ecx
je 0x19fc16
mov edx, dword [ebx + 0x238]
mov dword [esp + 0x18], edx
mov dword [ecx + 0x160], edx
mov ecx, dword [eax + 0x14]
mov edi, dword [eax + ecx*4 + 4]
mov eax, dword [eax + ecx*4 + 0xc]
push 0
mov dword [esp + 0x1c], eax
push ebx
mov ecx, 1
mov eax, ebp
mov dword [esp + 0x34], edi
call fcn.00108cb0
mov eax, edi
lea esi, [ebx + 0x204]
lea edi, [eax + 0x204]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 0x234]
mov esi, dword [edx]
lea ecx, [eax + 0x234]
mov dword [ecx], esi
mov esi, dword [edx + 4]
mov dword [ecx + 4], esi
mov esi, dword [edx + 8]
mov dword [ecx + 8], esi
mov esi, dword [edx + 0xc]
mov dword [ecx + 0xc], esi
mov esi, dword [edx + 0x10]
mov dword [ecx + 0x10], esi
mov edx, dword [edx + 0x14]
mov dword [ecx + 0x14], edx
xor edx, edx
lea edi, [eax + 0x250]
mov ecx, 0xe
lea esi, [ebx + 0x250]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x34]
mov dword [eax + 0x34], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], edx
xor ecx, ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x12c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x130], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x134], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x128], ecx
mov dword [esp + 0x138], edx
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], ecx
mov dword [esp + 0x13c], edx
mov dword [esp + 0x140], edx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xa8], 0
mov dword [esp + 0x144], edx
mov dword [esp + 0xf4], ecx
mov esi, dword [esp + 0x150]
cmp dword [esi + 0x18], 1
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], ecx
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x10c], edx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x110], edx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x114], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0x118], edx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x11c], edx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x120], edx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x124], edx
mov dword [esp + 0xe4], ecx
jae 0x19fe9f
test byte [ebx + 0x234], 8
mov edi, dword [esp + 0x154]
mov edx, edi
mov ecx, dword [edx]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
je 0x19fe74
sar dword [esp + 0x38], 1
sar dword [esp + 0x40], 1
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.001b2690
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.001b2690
add dword [esi + 0x18], 1
jmp 0x1a04d9
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
call dword [edx + 0x3c]
mov eax, dword [esi + 0x14]
sub eax, 1
and eax, 1
mov edi, dword [esi + eax*4 + 4]
mov eax, dword [esi + eax*4 + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x244]
test al, 1
jne 0x19fedc
test al, 4
je 0x19fedc
and al, 0x20
neg al
sbb eax, eax
add eax, 2
mov esi, eax
jmp 0x19fede
xor esi, esi
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0
push 1
push 0
push 2
push 1
push esi
push ebx
push 0
call dword [edx + 0x28]
mov ecx, dword [ebp + 0x4c80]
mov eax, dword [ecx]
push 0
push 0
push 1
push 0
push 2
push 1
push esi
push edi
push 1
call dword [eax + 0x28]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 2
call dword [edx + 0x30]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx]
push 0
push 0
push 0
push 2
push 1
push 0
push edx
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x4c80]
mov eax, dword [ecx]
push 0
push 0x182
call dword [eax + 0x14]
fld dword [ebx + 0x238]
fst dword [esp + 0x34]
xor ecx, ecx
fcomp qword [0x41c240]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
fnstsw ax
test ah, 0x41
jne 0x19ff7c
mov dword [esp + 0x34], 0x3f600000
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0x182
lea eax, [esp + 0x38]
push eax
push 4
call dword [edx + 0x18]
test byte [ebx + 0x244], 1
mov edx, 2
je 0x19ffa6
mov edx, 1
mov ecx, dword [esp + 0x154]
mov eax, dword [ecx]
sar eax, 2
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
movsx edi, dx
mov dword [esp + 0x28], edi
mov eax, dword [ecx + 8]
fst dword [esp + 0xb0]
sar eax, 2
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
fild dword [ecx + 4]
fdiv st(1)
fstp dword [esp + 0x70]
fild dword [esp + 0x28]
mov eax, dword [esp + 0x70]
mov dword [esp + 0xec], eax
fstp dword [esp + 0x90]
mov edx, dword [esp + 0x90]
fild dword [ecx + 0xc]
mov dword [esp + 0x108], edx
fdiv st(1)
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xcc], eax
fstp st(0)
mov eax, dword [esp + 0x70]
fld dword [0x41bc3c]
mov dword [esp + 0xf0], eax
fsubr st(1)
mov eax, dword [esp + 0x50]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x90]
fst dword [esp + 0xa8]
fld dword [esp + 0x70]
fsub dword [0x41bc3c]
fst dword [esp + 0x68]
fld dword [esp + 0x90]
fsub dword [0x41bc3c]
fst dword [esp + 0x14]
fstp dword [esp + 0x88]
mov edx, dword [esp + 0x14]
fld dword [esp + 0x50]
mov dword [esp + 0x10c], edx
fsub dword [0x41bc3c]
fst dword [esp + 0x48]
fld st(3)
fstp dword [esp + 0x128]
fld st(1)
fstp dword [esp + 0xe8]
fst dword [esp + 0xc8]
fld st(3)
fadd dword [0x41bc3c]
fst dword [esp + 0x10]
fstp dword [esp + 0xac]
mov edx, dword [esp + 0x10]
fxch st(1)
mov dword [esp + 0x130], edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x90]
fadd dword [0x41bc3c]
fst dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fstp dword [esp + 0x8c]
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x14]
fstp dword [esp + 0x4c]
mov dword [esp + 0x94], edx
fst dword [esp + 0x12c]
fstp dword [esp + 0xb4]
fld dword [esp + 0x70]
fadd dword [0x41bc3c]
fst dword [esp + 0x74]
fld dword [esp + 0x50]
fadd dword [0x41bc3c]
fst dword [esp + 0x54]
fxch st(2)
fstp dword [esp + 0x134]
fst dword [esp + 0xf4]
fxch st(1)
mov edx, dword [esp + 0x10]
fst dword [esp + 0xd4]
mov dword [esp + 0x114], eax
fxch st(1)
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x78]
mov dword [esp + 0x98], eax
movsx eax, word [ecx + 4]
fstp dword [esp + 0x58]
mov dword [esp + 0xb8], edx
cdq
idiv edi
push 0
mov dword [esp + 0x34], eax
movsx eax, word [ecx + 0xc]
cdq
idiv edi
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
mov edi, eax
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xc8]
push eax
mov eax, dword [esp + 0x4c]
push edi
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x74]
push eax
push 5
call dword [edx + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0
push 1
push 1
push 2
push 1
push esi
push eax
push 0
call dword [edx + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0
push 1
push 1
push 2
push 1
push esi
push eax
push 1
call dword [edx + 0x28]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 2
call dword [edx + 0x30]
mov ecx, dword [ebp + 0x4c80]
mov eax, dword [ecx]
push 0
push 0
push 1
push 2
mov esi, dword [esp + 0x28]
push 1
push 0
push esi
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0x183
call dword [edx + 0x14]
mov eax, dword [ebx + 0x238]
mov ecx, dword [ebp + 0x4c80]
mov dword [esp + 0x34], eax
mov edx, dword [ecx]
push 0x183
lea eax, [esp + 0x38]
push eax
push 4
call dword [edx + 0x18]
mov eax, dword [esi + 0x12c]
cmp eax, 1
jae 0x1a0277
mov eax, 1
test eax, eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
jge 0x1a0289
fadd dword [0x41bc68]
fdivr dword [esp + 0x70]
fstp dword [esp + 0x70]
mov eax, dword [esi + 0x12c]
cmp eax, 1
jae 0x1a02a1
mov eax, 1
test eax, eax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
jge 0x1a02b3
fadd dword [0x41bc68]
fdivr dword [esp + 0x50]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x128], ecx
mov dword [esp + 0x108], edx
mov dword [esp + 0xec], eax
fstp dword [esp + 0x50]
fld dword [esp + 0xb0]
fsub dword [0x41bc3c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xcc], edx
fst dword [esp + 0xa8]
fld dword [esp + 0x70]
fsub dword [0x41bc3c]
fst dword [esp + 0x68]
fld dword [esp + 0x90]
fsub dword [0x41bc3c]
fst dword [esp + 0x14]
fstp dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x50]
mov dword [esp + 0x10c], ecx
fsub dword [0x41bc3c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xf0], ecx
mov ecx, dword [esp + 0x14]
fst dword [esp + 0x48]
mov dword [esp + 0x94], ecx
fld st(1)
fstp dword [esp + 0xe8]
fst dword [esp + 0xc8]
fld dword [esp + 0xb0]
fadd dword [0x41bc3c]
fst dword [esp + 0x10]
fstp dword [esp + 0xac]
mov eax, dword [esp + 0x10]
fxch st(1)
mov ecx, dword [esp + 0x10]
fstp dword [esp + 0x6c]
mov dword [esp + 0x130], eax
fld dword [esp + 0x90]
mov eax, dword [esp + 0x50]
fadd dword [0x41bc3c]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb8], ecx
fst dword [esp + 0x24]
mov dword [esp + 0x114], eax
fstp dword [esp + 0x8c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x110], edx
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x134], edx
fst dword [esp + 0x12c]
mov edx, dword [esp + 0x24]
fstp dword [esp + 0xb4]
mov dword [esp + 0x98], edx
fld dword [esp + 0x70]
mov ecx, 1
fadd dword [0x41bc3c]
fst dword [esp + 0x74]
fld dword [esp + 0x50]
fadd dword [0x41bc3c]
fst dword [esp + 0x54]
fld st(1)
fstp dword [esp + 0xf4]
fst dword [esp + 0xd4]
fxch st(1)
fstp dword [esp + 0x78]
fstp dword [esp + 0x58]
mov esi, dword [esi + 0x12c]
cmp esi, 1
jb 0x1a0449
mov ecx, esi
movsx eax, word [esp + 0x30]
xor edx, edx
div ecx
cmp esi, 1
mov dword [esp + 0x30], eax
jae 0x1a0460
mov esi, 1
mov ecx, dword [ebp + 0x4c80]
mov eax, dword [ecx]
push 0
lea edx, [esp + 0xcc]
push edx
lea edx, [esp + 0x110]
push edx
lea edx, [esp + 0xf4]
push edx
lea edx, [esp + 0x138]
push edx
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0xc8]
push edx
movsx eax, di
xor edx, edx
div esi
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x54]
push 5
call dword [eax + 0x38]
mov edi, dword [esp + 0x154]
mov esi, dword [esp + 0x150]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x14c], ecx
test byte [ebx + 0x234], 8
je 0x1a050f
mov edx, dword [eax + 0x244]
and dword [eax + 0x234], 0xfffffff7
and edx, 0xfffffffb
or edx, 3
mov dword [eax + 0x244], edx
sar dword [edi + 4], 1
sar dword [edi + 0xc], 1
mov ecx, dword [esi + 0x14]
sub ecx, 1
and ecx, 1
push 1
mov dword [esi + 0x14], ecx
mov edi, eax
push ebx
mov ecx, 2
mov eax, ebp
call fcn.00108cb0
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
add esp, 0x13c
ret 0xc