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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f0c56
mov eax, dword fs:[0]
push eax
sub esp, 0x7e8
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x7b0], eax
push ebx
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x7f8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x70], ecx
je 0x538894
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x538894
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x5387ca
cmp dword [ebx + 0x10], esi
jne 0x5387ca
test ecx, ecx
je 0x5387c3
push 1
push 1
push 1
push ebx
call fcn.005382a0
mov al, 1
jmp 0x538896
fild dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x90]
fidiv dword [ebp + 8]
fstp dword [esp + 0x68]
fild dword [ebx + 0x10]
fidiv dword [ebp + 0xc]
fstp dword [esp + 0x5c]
call fcn.00537a30
push ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0x804], 0
call fcn.00537b70
mov ecx, ebx
call fcn.00539d90
push eax
movzx eax, word [ebx + 0x16]
push eax
push esi
push edi
lea ecx, [esp + 0x9c]
call fcn.00538080
push 0x100
mov ecx, ebx
call fcn.0053bb60
push eax
lea ecx, [esp + 0x94]
call fcn.0053c390
lea ecx, [esp + 0x8c]
call fcn.00539e30
test al, al
jne 0x5388bc
lea ecx, [esp + 0x8c]
call fcn.00539f50
lea edx, [ebx + 0x44]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x538858
lea ecx, [esp + 0x8c]
mov dword [esp + 0x800], 0xffffffff
mov dword [esp + 0x8c], vtable.CxImage.0
call fcn.00537b00
lea ecx, [esp + 0x8c]
call fcn.00537a50
xor al, al
mov ecx, dword [esp + 0x7f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7b0]
xor ecx, esp
call fcn.004e8c89
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
sub eax, 1
je 0x5395ca
sub eax, 1
je 0x53923f
mov eax, dword [ebx + 0xc]
cmp eax, edi
jle 0x538e83
cmp dword [ebx + 0x10], esi
jle 0x538e83
cmp word [ebx + 0x16], 0x18
jne 0x538e83
mov ecx, dword [esp + 0xc0]
lea eax, [edi + edi*2]
mov dword [esp + 0x4c], ecx
lea esi, [eax + 3]
mov dword [esp + 0x68], eax
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ca5aa
mov dword [esp + 0x54], eax
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ca5aa
fld dword [esp + 0x6c]
fmul qword [0x6159d0]
mov esi, eax
mov dword [esp + 0x50], esi
fmul dword [esp + 0x60]
call fcn.004e8d20
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
lea edi, [eax + eax*2]
mov eax, dword [esp + 0x58]
add edi, edi
add edi, edi
push edi
push 0
push eax
call fcn.004e9ba0
push edi
xor edi, edi
push edi
push esi
call fcn.004e9ba0
fld dword [esp + 0x78]
fld1
add esp, 0x20
cmp dword [ebx + 0x10], edi
fsub st(1), st(0)
fxch st(1)
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
fstp dword [esp + 0x38]
jle 0x538e35
fld dword [esp + 0x38]
mov dword [esp + 0x34], edi
fld qword [0x6159d0]
fld dword [esp + 0x64]
mov eax, dword [esp + 0x34]
cdq
idiv dword [ebx + 0x10]
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x144], eax
jne 0x538e2f
mov edi, dword [ebx + 0x30]
fld st(0)
imul edi, dword [esp + 0x44]
fsub st(4)
fstp dword [esp + 0x20]
fild dword [esp + 0x44]
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
add edi, dword [ebx + 0x34]
fcom st(3)
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], esi
fnstsw ax
test ah, 5
jp 0x538acb
cmp dword [ebx + 0xc], esi
fstp st(0)
mov dword [esp + 0x30], esi
jle 0x538e16
mov esi, dword [esp + 0x50]
fld dword [esp + 0x20]
add esi, 4
fild dword [esp + 0x30]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x538a57
movzx ecx, byte [edi]
fstp st(0)
imul ecx, ecx, 0x3e8
add dword [esi - 4], ecx
movzx edx, byte [edi + 1]
imul edx, edx, 0x3e8
add dword [esi], edx
movzx eax, byte [edi + 2]
imul eax, eax, 0x3e8
add dword [esi + 4], eax
add edi, 3
jmp 0x538ab0
fsub st(1)
fmul st(3)
call fcn.004e8d20
fadd st(1)
movzx edx, byte [edi]
mov ecx, 0x3e8
sub ecx, eax
fstp dword [esp + 0x20]
imul edx, ecx
fld dword [esp + 0x20]
add dword [esi - 4], edx
movzx edx, byte [edi]
imul edx, eax
add dword [esi + 8], edx
movzx edx, byte [edi + 1]
imul edx, ecx
add dword [esi], edx
movzx edx, byte [edi + 1]
imul edx, eax
add dword [esi + 0xc], edx
movzx edx, byte [edi + 2]
imul edx, ecx
add dword [esi + 4], edx
movzx ecx, byte [edi + 2]
imul ecx, eax
add dword [esi + 0x10], ecx
add edi, 3
add esi, 0xc
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
jl 0x538a16
fstp st(0)
jmp 0x538e16
fsub st(3)
fmul st(2)
call fcn.004e8d20
cmp dword [ebx + 0xc], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], esi
jle 0x538d97
mov ecx, dword [esp + 0x50]
fld dword [esp + 0x20]
mov eax, 0x3e8
sub eax, dword [esp + 0x18]
lea esi, [ecx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
lea edx, [eax + 8]
sub eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x5c], eax
fild dword [esp + 0x30]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x538b75
movzx eax, byte [edi]
fstp st(0)
imul eax, dword [esp + 0x3c]
add dword [esi - 4], eax
movzx ecx, byte [edi]
imul ecx, dword [esp + 0x18]
add dword [edx - 8], ecx
movzx eax, byte [edi + 1]
imul eax, dword [esp + 0x3c]
add dword [esi], eax
movzx ecx, byte [edi + 1]
imul ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
add dword [eax + esi], ecx
movzx eax, byte [edi + 2]
imul eax, dword [esp + 0x3c]
add dword [esi + 4], eax
movzx ecx, byte [edi + 2]
imul ecx, dword [esp + 0x18]
add dword [edx], ecx
add edi, 3
jmp 0x538d81
fsub st(1)
fmul st(3)
call fcn.004e8d20
movzx edx, byte [edi]
imul edx, dword [esp + 0x3c]
mov ecx, eax
mov eax, 0x3e8
sub eax, ecx
imul edx, eax
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi - 4], eax
mov eax, dword [esi - 4]
cdq
idiv ebx
mov edx, dword [esp + 0x4c]
mov byte [edx], al
movzx edx, byte [edi]
imul edx, dword [esp + 0x18]
imul edx, dword [esp + 0x20]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [esp + 0x24]
add dword [eax - 8], edx
movzx edx, byte [edi]
imul edx, dword [esp + 0x3c]
imul edx, ecx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 8], eax
movzx edx, byte [edi]
imul edx, dword [esp + 0x18]
imul edx, ecx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x5c]
mov dword [esi + edx + 8], eax
movzx edx, byte [edi + 1]
imul edx, dword [esp + 0x3c]
imul edx, dword [esp + 0x20]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi], eax
mov eax, dword [esi]
cdq
idiv ebx
mov edx, dword [esp + 0x4c]
mov byte [edx + 1], al
movzx edx, byte [edi + 1]
imul edx, dword [esp + 0x18]
imul edx, dword [esp + 0x20]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
fadd st(1)
mov eax, dword [esp + 0x5c]
add dword [eax + esi], edx
movzx edx, byte [edi + 1]
imul edx, dword [esp + 0x3c]
imul edx, ecx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 0xc], eax
movzx edx, byte [edi + 1]
imul edx, dword [esp + 0x18]
imul edx, ecx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [edx + 8], eax
movzx edx, byte [edi + 2]
imul edx, dword [esp + 0x3c]
imul edx, dword [esp + 0x20]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 4], eax
mov eax, dword [esi + 4]
cdq
idiv ebx
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
add ebx, 0xc
add esi, 0xc
mov dword [esp + 0x24], ebx
mov byte [edx + 2], al
movzx edx, byte [edi + 2]
imul edx, dword [esp + 0x18]
imul edx, dword [esp + 0x20]
fstp dword [esp + 0x20]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [ebx - 0xc], eax
movzx edx, byte [edi + 2]
imul edx, dword [esp + 0x3c]
imul edx, ecx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 4], eax
movzx edx, byte [edi + 2]
imul edx, dword [esp + 0x18]
imul edx, ecx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 3
add dword [esp + 0x4c], eax
add dword [esp + 0x38], eax
mov dword [ebx], ecx
add edi, eax
add dword [esp + 0x54], 1
fld dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add eax, 1
cmp eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
jl 0x538b0e
fstp st(0)
mov edx, dword [ebp + 8]
cmp dword [esp + 0x54], edx
mov esi, dword [esp + 0x50]
jge 0x538dce
mov edi, dword [esp + 0x38]
mov eax, dword [esi + edi*4]
cdq
idiv dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov byte [ecx], al
mov eax, dword [esi + edi*4 + 4]
cdq
idiv dword [esp + 0x40]
mov byte [ecx + 1], al
mov eax, dword [esi + edi*4 + 8]
cdq
idiv dword [esp + 0x40]
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x48]
fld dword [esp + 0x58]
mov eax, esi
faddp st(3)
mov dword [esp + 0x50], ecx
fxch st(2)
xor ecx, ecx
mov dword [eax], ecx
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [esp + 0x48], eax
fxch st(2)
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x1c]
add eax, 1
mov dword [esp + 0x1c], eax
imul eax, dword [esp + 0xbc]
add eax, dword [esp + 0xc0]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
add dword [esp + 0x34], 0x64
add eax, 1
cmp eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
jl 0x5389ab
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x1c]
fstp st(0)
cmp eax, dword [ebp + 0xc]
jge 0x538e67
mov edi, dword [esp + 0x68]
xor ecx, ecx
test edi, edi
jle 0x538e67
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [edx + ecx*4]
cdq
idiv dword [esp + 0x40]
add ecx, 1
add esi, 1
cmp ecx, edi
mov byte [esi - 1], al
jl 0x538e4e
mov eax, dword [esp + 0x50]
push eax
call fcn.004ca5d9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004ca5d9
add esp, 8
jmp 0x53967b
add eax, 0xffffffff
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x10]
sub eax, 1
test esi, esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], 0
jle 0x53967b
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cdq
idiv dword [ebp + 0xc]
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x144], eax
jne 0x53967b
fild dword [esp + 0x4c]
fmul dword [esp + 0x58]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld st(0)
call fcn.004e8d20
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x48], eax
add eax, 1
cmp ecx, eax
mov dword [esp + 0x44], ecx
jl 0x538ef5
mov dword [esp + 0x44], eax
cmp dword [ebp + 8], 0
fisub dword [esp + 0x48]
mov dword [esp + 0x34], 0
fstp dword [esp + 0x1c]
jle 0x539221
nop
fld dword [esp + 0x1c]
fild dword [esp + 0x34]
fmul dword [esp + 0x64]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld st(0)
call fcn.004e8d20
mov esi, eax
lea edi, [esi + 1]
cmp dword [esp + 0x54], edi
mov dword [esp + 0x28], esi
jge 0x538f3e
mov edi, dword [esp + 0x54]
cmp dword [ebx + 0x28], 0
fisub dword [esp + 0x28]
fstp dword [esp + 0x18]
je 0x538ff0
mov edx, dword [esp + 0x48]
fstp st(0)
push edx
push esi
mov ecx, ebx
call fcn.0053bbe0
mov ecx, ebx
push eax
lea eax, [esp + 0x88]
push eax
call fcn.0053bb80
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x24], ecx
push edi
mov ecx, ebx
call fcn.0053bbe0
mov ecx, ebx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0053bb80
mov ecx, dword [eax]
mov edx, dword [esp + 0x44]
push edx
mov dword [esp + 0x44], ecx
push esi
mov ecx, ebx
call fcn.0053bbe0
mov ecx, ebx
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0053bb80
mov ecx, dword [eax]
mov edx, dword [esp + 0x44]
push edx
mov dword [esp + 0x34], ecx
push edi
mov ecx, ebx
call fcn.0053bbe0
mov ecx, ebx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0053bb80
fld dword [esp + 0x1c]
mov ecx, dword [eax]
mov dl, byte [esp + 0x42]
mov dword [esp + 0x50], ecx
mov al, byte [esp + 0x52]
mov cl, byte [esp + 0x51]
jmp 0x53907f
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov edx, eax
imul eax, dword [esp + 0x44]
imul edx, dword [esp + 0x48]
add edx, ecx
lea esi, [esi + esi*2]
mov dword [esp + 0x2c], esi
add esi, edx
mov dword [esp + 0x28], edx
movzx edx, byte [esi]
add esi, 1
mov byte [esp + 0x20], dl
movzx edx, byte [esi]
mov byte [esp + 0x21], dl
movzx edx, byte [esi + 1]
mov byte [esp + 0x22], dl
mov edx, dword [esp + 0x28]
lea edi, [edi + edi*2]
lea esi, [edi + edx]
movzx edx, byte [esi]
add esi, 1
mov byte [esp + 0x40], dl
movzx edx, byte [esi]
mov byte [esp + 0x41], dl
mov dl, byte [esi + 1]
lea esi, [eax + ecx]
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + esi]
add eax, esi
add eax, 1
mov byte [esp + 0x30], cl
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
mov byte [esp + 0x32], al
lea eax, [esi + edi]
mov byte [esp + 0x31], cl
movzx ecx, byte [eax]
add eax, 1
mov byte [esp + 0x50], cl
mov cl, byte [eax]
add eax, 1
mov al, byte [eax]
movzx esi, byte [esp + 0x22]
fnstcw word [esp + 0x3c]
movzx edi, byte [esp + 0x32]
sub edi, esi
mov dword [esp + 0x28], edi
movzx edi, byte [esp + 0x31]
fild dword [esp + 0x28]
mov dword [esp + 0x2c], esi
movzx esi, byte [esp + 0x21]
fmul st(1)
sub edi, esi
fiadd dword [esp + 0x2c]
mov dword [esp + 0x28], edi
movzx edi, byte [esp + 0x30]
mov dword [esp + 0x2c], esi
movzx esi, byte [esp + 0x20]
fstp dword [esp + 0x24]
fild dword [esp + 0x28]
sub edi, esi
mov dword [esp + 0x28], edi
movzx eax, al
fmul st(1)
movzx edx, dl
fiadd dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
sub eax, edx
movzx ecx, cl
fstp dword [esp + 0x60]
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x41]
fmul st(1)
sub ecx, eax
fiadd dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
movzx edx, byte [esp + 0x50]
fstp dword [esp + 0x14]
fild dword [esp + 0x28]
mov dword [esp + 0x28], ecx
fmul st(1)
fiadd dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x40]
sub edx, eax
fstp dword [esp + 0x5c]
fild dword [esp + 0x28]
mov dword [esp + 0x28], edx
fmul st(1)
fiadd dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x3c]
or eax, 0xc00
fstp dword [esp + 0x6c]
fimul dword [esp + 0x28]
mov dword [esp + 0x28], eax
fiadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x5c]
fld dword [esp + 0x24]
fld st(0)
fsubp st(2)
fld dword [esp + 0x18]
fld st(0)
fmulp st(3)
fxch st(2)
faddp st(1)
fldcw word [esp + 0x28]
fistp dword [esp + 0x28]
mov cl, byte [esp + 0x28]
fldcw word [esp + 0x3c]
fld dword [esp + 0x6c]
fld dword [esp + 0x60]
fld st(0)
fsubp st(2)
fnstcw word [esp + 0x3c]
fld st(2)
movzx eax, word [esp + 0x3c]
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x60], eax
faddp st(1)
fldcw word [esp + 0x60]
mov esi, dword [esp + 0x34]
xor edx, edx
fistp dword [esp + 0x60]
movzx eax, byte [esp + 0x60]
fldcw word [esp + 0x3c]
mov byte [esp + 0x3c], al
fld dword [esp + 0x2c]
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fnstcw word [esp + 0x18]
fxch st(1)
movzx eax, word [esp + 0x18]
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x14], eax
faddp st(1)
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov al, byte [esp + 0x14]
mov dh, al
movzx eax, cl
mov ecx, dword [esp + 0x4c]
fldcw word [esp + 0x18]
mov dl, byte [esp + 0x3c]
shl edx, 8
or edx, eax
push edx
push ecx
push esi
lea ecx, [esp + 0x98]
call fcn.0053c660
add esi, 1
cmp esi, dword [ebp + 8]
mov dword [esp + 0x34], esi
jl 0x538f10
mov eax, dword [esp + 0x4c]
add dword [esp + 0x38], 0x64
add eax, 1
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
jl 0x538eac
jmp 0x53967b
test esi, esi
mov dword [esp + 0x40], 0
jle 0x53967b
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
cdq
idiv ecx
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x144], eax
jne 0x53967b
fild dword [esp + 0x40]
sub esp, 8
fmul dword [esp + 0x60]
fsub qword [0x615808]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp qword [esp]
call fcn.00585bf0
fstp dword [esp + 0x1c]
add esp, 8
fld dword [esp + 0x14]
fld st(0)
call fcn.004e8d20
fsubr dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
xor eax, eax
cmp dword [ebp + 8], eax
fstp dword [esp + 0x60]
mov dword [esp + 0x30], eax
jle 0x5395aa
mov dword [esp + 0x34], eax
jmp 0x5392d0
fild dword [esp + 0x30]
sub esp, 8
fmul dword [esp + 0x6c]
fsub qword [0x615808]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp qword [esp]
call fcn.00585bf0
fstp dword [esp + 0x1c]
add esp, 8
fld dword [esp + 0x14]
fld st(0)
call fcn.004e8d20
fsubr dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], 0xffffffff
fstp dword [esp + 0x68]
fldz
fst dword [esp + 0x44]
fst dword [esp + 0x24]
fstp dword [esp + 0x20]
fild dword [esp + 0x48]
push ecx
fsub dword [esp + 0x64]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0053d2a0
mov edx, dword [esp + 0x4c]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x70]
lea esi, [edx + eax]
add esp, 4
test esi, esi
jge 0x539356
xor esi, esi
mov eax, dword [ebx + 0x10]
cmp esi, eax
jl 0x539360
lea esi, [eax - 1]
or edi, 0xffffffff
mov dword [esp + 0x1c], edi
fld dword [esp + 0x68]
push ecx
fisub dword [esp + 0x20]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0053d2a0
fmul dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add esp, 4
add ecx, edi
fstp dword [esp + 0x54]
jns 0x539395
xor ecx, ecx
mov eax, dword [ebx + 0xc]
cmp ecx, eax
jl 0x53939f
lea ecx, [eax - 1]
cmp dword [ebx + 0x28], 0
je 0x5393cc
push 1
push esi
push ecx
lea edx, [esp + 0x84]
push edx
mov ecx, ebx
call fcn.0053bda0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x1e]
mov dl, byte [esp + 0x1d]
mov cl, byte [esp + 0x1c]
jmp 0x5393e7
mov eax, dword [ebx + 0x30]
imul eax, esi
add eax, dword [ebx + 0x34]
lea ecx, [ecx + ecx*2]
add eax, ecx
mov cl, byte [eax]
mov dl, byte [eax + 1]
add eax, 1
add eax, 1
mov al, byte [eax]
movzx eax, al
mov dword [esp + 0x14], eax
movzx edx, dl
fild dword [esp + 0x14]
fld dword [esp + 0x54]
mov dword [esp + 0x14], edx
fld st(0)
movzx eax, cl
fmulp st(2)
fld dword [esp + 0x20]
add edi, 1
cmp edi, 3
faddp st(2)
fxch st(1)
mov dword [esp + 0x1c], edi
fstp dword [esp + 0x20]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fild dword [esp + 0x14]
fmulp st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
jl 0x539367
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, 3
mov dword [esp + 0x48], eax
jl 0x539325
cmp dword [ebx + 0x28], 0
fld dword [esp + 0x44]
je 0x5394fc
fnstcw word [esp + 0x18]
xor edx, edx
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx ecx, byte [esp + 0x14]
mov dh, cl
fldcw word [esp + 0x18]
fld dword [esp + 0x24]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov al, byte [esp + 0x14]
mov dl, al
fldcw word [esp + 0x18]
shl edx, 8
fld dword [esp + 0x20]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx ecx, byte [esp + 0x14]
movzx eax, cl
fldcw word [esp + 0x18]
mov ecx, dword [esp + 0x40]
or edx, eax
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x98]
call fcn.0053c660
jmp 0x539591
mov ecx, dword [esp + 0xbc]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
imul ecx, dword [esp + 0x40]
add ecx, dword [esp + 0xc0]
or eax, 0xc00
add ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
add ecx, 1
add ecx, 1
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov byte [ecx - 2], al
fldcw word [esp + 0x18]
fld dword [esp + 0x24]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov dl, byte [esp + 0x14]
mov byte [ecx - 1], dl
fldcw word [esp + 0x18]
fld dword [esp + 0x20]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
movzx eax, byte [esp + 0x14]
mov byte [ecx], al
fldcw word [esp + 0x18]
mov eax, dword [esp + 0x30]
add dword [esp + 0x34], 3
add eax, 1
cmp eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
jl 0x5392d0
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0x38], 0x64
add eax, 1
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x53925a
jmp 0x53967b
xor edi, edi
test esi, esi
mov dword [esp + 0x34], edi
jle 0x53967b
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x1c]
cdq
idiv dword [ebp + 0xc]
cmp dword [ebx + 0x148], 0
mov dword [ebx + 0x144], eax
jne 0x53967b
fild dword [esp + 0x34]
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [esp + 0x38], esi
fmul dword [esp + 0x58]
fstp dword [esp + 0x24]
jle 0x539666
fld dword [esp + 0x24]
call fcn.004e8d20
mov dword [esp + 0x34], eax
fild dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 1
push ecx
fmul dword [esp + 0x6c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
call fcn.004e8d20
push eax
lea edx, [esp + 0x8c]
push edx
mov ecx, ebx
call fcn.0053bda0
mov eax, dword [eax]
push 0
push eax
push edi
push esi
lea ecx, [esp + 0x9c]
call fcn.0053c5e0
add esi, 1
cmp esi, dword [ebp + 8]
mov dword [esp + 0x38], esi
jl 0x53961b
add dword [esp + 0x1c], 0x64
add edi, 1
cmp edi, dword [ebp + 0xc]
mov dword [esp + 0x34], edi
jl 0x5395dc
mov ecx, ebx
call fcn.0053c690
test al, al
je 0x53979b
mov esi, dword [ebp + 0x10]
cmp esi, 1
jne 0x539720
lea ecx, [esp + 0x8c]
call fcn.0053c6a0
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [esp + 0x1c], edi
jle 0x53979b
fild dword [esp + 0x1c]
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [esp + 0x1c], esi
fmul dword [esp + 0x58]
fstp dword [esp + 0x24]
jle 0x539712
fld dword [esp + 0x24]
call fcn.004e8d20
mov dword [esp + 0x34], eax
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push ecx
fmul dword [esp + 0x68]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
call fcn.004e8d20
push eax
mov ecx, ebx
call fcn.0053c830
lea ecx, [esp + 0x8c]
push eax
push edi
push esi
call fcn.0053c7f0
add esi, 1
cmp esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
jl 0x5396d5
add edi, 1
cmp edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
jl 0x5396b1
jmp 0x53979b
push 0
lea ecx, [esp + 0x428]
call fcn.00537a30
lea edx, [esp + 0x424]
push edx
mov ecx, ebx
mov byte [esp + 0x804], 1
call fcn.0053ca40
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push esi
push eax
push ecx
lea ecx, [esp + 0x434]
call fcn.00538740
lea edx, [esp + 0x424]
push edx
lea ecx, [esp + 0x90]
call fcn.0053c750
lea ecx, [esp + 0x424]
mov byte [esp + 0x800], 0
mov dword [esp + 0x424], 0x5ff2d8
call fcn.00537b00
lea ecx, [esp + 0x424]
call fcn.00537a50
mov ecx, dword [esp + 0x70]
test ecx, ecx
push 1
je 0x5397af
lea eax, [esp + 0x90]
push eax
jmp 0x5397b9
lea ecx, [esp + 0x90]
push ecx
mov ecx, ebx
call fcn.00537c80
lea ecx, [esp + 0x8c]
mov dword [esp + 0x800], 0xffffffff
mov dword [esp + 0x8c], vtable.CxImage.0
call fcn.00537b00
lea ecx, [esp + 0x8c]
call fcn.00537a50
mov al, 1
jmp 0x538896