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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
lea eax, [ebp - 0x88]
mov ecx, 4
mov dword [eax], 0xff000000
add eax, 0x20
dec ecx
jne 0x522054
mov eax, dword [0x839f54]
mov ecx, dword [0x839f58]
mov edx, dword [0x839f5c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea edi, [ebp - 0x9c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov esi, ebx
sub edi, ebx
mov dword [ebp + 0xc], 4
mov ecx, dword [ebp + 8]
lea eax, [edi + esi]
push eax
push ecx
mov ecx, dword [0x7a0f18]
push esi
call fcn.004127b0
mov eax, dword [ebp + 0xc]
add esi, 0x20
dec eax
mov dword [ebp + 0xc], eax
jne 0x522091
mov al, byte [ebp + 0x10]
test al, al
je 0x5222c4
fld dword [ebp - 0x9c]
fcomp dword [ebp - 0x7c]
fnstsw ax
test ah, 1
je 0x5220d4
fld dword [ebp - 0x9c]
jmp 0x5220d7
fld dword [ebp - 0x7c]
fld dword [ebp - 0x5c]
fcomp dword [ebp - 0x3c]
fnstsw ax
test ah, 1
je 0x5220e9
fld dword [ebp - 0x5c]
jmp 0x5220ec
fld dword [ebp - 0x3c]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x522116
fld dword [ebp - 0x9c]
fcomp dword [ebp - 0x7c]
fnstsw ax
test ah, 1
je 0x522111
fld dword [ebp - 0x9c]
jmp 0x52212b
fld dword [ebp - 0x7c]
jmp 0x52212b
fld dword [ebp - 0x5c]
fcomp dword [ebp - 0x3c]
fnstsw ax
test ah, 1
je 0x522128
fld dword [ebp - 0x5c]
jmp 0x52212b
fld dword [ebp - 0x3c]
mov ecx, dword [0x7a0f18]
fild dword [ecx + 0x24]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x52266e
fld dword [ebp - 0x9c]
fcomp dword [ebp - 0x7c]
fnstsw ax
test ah, 0x41
jne 0x52215b
fld dword [ebp - 0x9c]
jmp 0x52215e
fld dword [ebp - 0x7c]
fld dword [ebp - 0x5c]
fcomp dword [ebp - 0x3c]
fnstsw ax
test ah, 0x41
jne 0x522170
fld dword [ebp - 0x5c]
jmp 0x522173
fld dword [ebp - 0x3c]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x52219d
fld dword [ebp - 0x9c]
fcomp dword [ebp - 0x7c]
fnstsw ax
test ah, 0x41
jne 0x522198
fld dword [ebp - 0x9c]
jmp 0x5221b2
fld dword [ebp - 0x7c]
jmp 0x5221b2
fld dword [ebp - 0x5c]
fcomp dword [ebp - 0x3c]
fnstsw ax
test ah, 0x41
jne 0x5221af
fld dword [ebp - 0x5c]
jmp 0x5221b2
fld dword [ebp - 0x3c]
fcomp dword [0x73a698]
fnstsw ax
test ah, 1
jne 0x52266e
fld dword [ebp - 0x98]
fcomp dword [ebp - 0x78]
fnstsw ax
test ah, 1
je 0x5221db
fld dword [ebp - 0x98]
jmp 0x5221de
fld dword [ebp - 0x78]
fld dword [ebp - 0x58]
fcomp dword [ebp - 0x38]
fnstsw ax
test ah, 1
je 0x5221f0
fld dword [ebp - 0x58]
jmp 0x5221f3
fld dword [ebp - 0x38]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x52221d
fld dword [ebp - 0x98]
fcomp dword [ebp - 0x78]
fnstsw ax
test ah, 1
je 0x522218
fld dword [ebp - 0x98]
jmp 0x522232
fld dword [ebp - 0x78]
jmp 0x522232
fld dword [ebp - 0x58]
fcomp dword [ebp - 0x38]
fnstsw ax
test ah, 1
je 0x52222f
fld dword [ebp - 0x58]
jmp 0x522232
fld dword [ebp - 0x38]
fild dword [ecx + 0x28]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x52266e
fld dword [ebp - 0x98]
fcomp dword [ebp - 0x78]
fnstsw ax
test ah, 0x41
jne 0x52225c
fld dword [ebp - 0x98]
jmp 0x52225f
fld dword [ebp - 0x78]
fld dword [ebp - 0x58]
fcomp dword [ebp - 0x38]
fnstsw ax
test ah, 0x41
jne 0x522271
fld dword [ebp - 0x58]
jmp 0x522274
fld dword [ebp - 0x38]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x52229e
fld dword [ebp - 0x98]
fcomp dword [ebp - 0x78]
fnstsw ax
test ah, 0x41
jne 0x522299
fld dword [ebp - 0x98]
jmp 0x5222b3
fld dword [ebp - 0x78]
jmp 0x5222b3
fld dword [ebp - 0x58]
fcomp dword [ebp - 0x38]
fnstsw ax
test ah, 0x41
jne 0x5222b0
fld dword [ebp - 0x58]
jmp 0x5222b3
fld dword [ebp - 0x38]
fcomp dword [0x73a698]
fnstsw ax
test ah, 1
jne 0x52266e
mov eax, dword [0x8114a0]
test eax, eax
je 0x522397
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x94]
sub eax, ebx
lea edx, [ebp - 0x8c]
sub ecx, ebx
mov dword [ebp + 8], edx
lea edi, [ebp - 0xb8]
lea esi, [ebx + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], 4
jmp 0x522308
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi - 4]
mov dword [eax + esi], edx
mov eax, dword [esi]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi - 8]
mov dword [edi - 4], ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xa]
and ecx, 0xff
mov edx, dword [esi + 8]
mov dword [ebp - 4], ecx
mov dword [edi], edx
fild dword [ebp - 4]
fmul dword [ebp - 0x1c]
call fcn.007123f0
mov byte [ebp - 0xa], al
mov edx, dword [ebp - 0xb]
and edx, 0xff
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fmul dword [ebp - 0x18]
call fcn.007123f0
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fmul dword [ebp - 0x14]
call fcn.007123f0
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add edi, 8
mov dword [eax], ecx
add eax, 0x20
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
add esi, 0x20
dec eax
mov dword [ebp - 0x10], eax
jne 0x522302
jmp 0x5224ce
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x52240d
lea esi, [ebp - 0x98]
lea edi, [ebp - 0x94]
sub esi, ebx
sub edi, ebx
lea edx, [ebp - 0x89]
lea ecx, [ebp - 0xb8]
lea eax, [ebx + 0x14]
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], 4
jmp 0x5223d2
mov esi, dword [ebp + 0xc]
mov edi, dword [eax - 4]
add ecx, 8
mov dword [esi + eax], edi
mov edi, dword [ebp + 0x10]
mov esi, dword [eax]
add edx, 0x20
mov dword [edi + eax], esi
mov esi, dword [eax + 4]
mov dword [ecx - 0xc], esi
mov esi, dword [eax + 8]
mov dword [ecx - 8], esi
mov esi, dword [eax - 8]
mov dword [edx - 0x23], esi
mov esi, dword [ebp + 8]
mov byte [edx - 0x20], 0x80
add eax, 0x20
dec esi
mov dword [ebp + 8], esi
jne 0x5223cf
jmp 0x5224ce
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x94]
sub eax, ebx
lea edx, [ebp - 0x8c]
sub ecx, ebx
mov dword [ebp + 8], edx
lea edi, [ebp - 0xb8]
lea esi, [ebx + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], 4
jmp 0x522444
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [esi - 4]
mov dword [eax + esi], edx
mov eax, dword [esi]
mov dword [ecx + esi], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi - 8]
mov dword [edi - 4], ecx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xa]
and ecx, 0xff
mov edx, dword [esi + 8]
mov dword [ebp - 4], ecx
mov dword [edi], edx
fild dword [ebp - 4]
fmul dword [ebp - 0x1c]
call fcn.007123f0
mov byte [ebp - 0xa], al
mov edx, dword [ebp - 0xb]
and edx, 0xff
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fmul dword [ebp - 0x18]
call fcn.007123f0
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fmul dword [ebp - 0x14]
call fcn.007123f0
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add edi, 8
mov dword [eax], ecx
add eax, 0x20
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
add esi, 0x20
dec eax
mov dword [ebp - 0x10], eax
jne 0x52243e
mov al, byte [0x769474]
test al, al
mov eax, dword [0x79c050]
je 0x5225ae
test eax, eax
je 0x52263a
mov ecx, dword [0x7a0f18]
call fcn.004123a0
mov edi, dword [eax]
mov ecx, 8
lea esi, [ebp - 0x9c]
push 0
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xbc]
lea esi, [ebp - 0x7c]
push eax
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0xb8]
mov dword [edx + 0x24], ecx
mov edi, dword [eax]
add edi, 0x28
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb4]
lea esi, [ebp - 0x5c]
mov dword [edx + 0x48], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [edx + 0x4c], ecx
mov edi, dword [eax]
add edi, 0x50
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xac]
lea esi, [ebp - 0x3c]
mov dword [edx + 0x70], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [edx + 0x74], ecx
mov edi, dword [eax]
add edi, 0x78
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa4]
mov dword [edx + 0x98], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [edx + 0x9c], ecx
mov edx, dword [ebx + 0x84]
mov dword [eax + 0x10], edx
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x7a0f18]
call fcn.00411fb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x52263a
mov ecx, dword [0x7a0f18]
call fcn.004122d0
mov edi, dword [eax]
mov ecx, 0x20
lea esi, [ebp - 0x9c]
push 0x1000
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xbc]
push eax
mov dword [edx + 0x18], ecx
mov ecx, dword [ebp - 0xb8]
mov dword [edx + 0x1c], ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb4]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [edx + 0x3c], ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 0xac]
mov dword [edx + 0x58], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [edx + 0x5c], ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 0xa4]
mov dword [edx + 0x78], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [edx + 0x7c], ecx
mov edx, dword [ebx + 0x88]
mov dword [eax + 8], edx
mov ecx, dword [0x7a0f18]
call fcn.00411b20
mov ecx, dword [0x7a0f18]
call fcn.004122d0
mov edi, dword [eax]
mov ecx, 0x20
lea esi, [ebp - 0x9c]
push 0x800
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x84]
push eax
mov dword [eax + 8], ecx
mov ecx, dword [0x7a0f18]
call fcn.00411b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc