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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
test dword [ebp + 0xe30], 0x10000
je 0x52730c
mov eax, dword [esp + 0x70]
push ebp
push eax
call fcn.00527120
mov eax, dword [ebp + 0xe30]
add esp, 8
and eax, 0xfffeffff
mov dword [ebp + 0xe30], eax
je 0x528148
mov eax, dword [ebp + 0xe30]
xor ebx, ebx
cmp eax, 0x1000
jne 0x527380
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je 0x527380
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp + 0xe3c]
cmp eax, ebx
je 0x527341
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp + 0xe3c], ebx
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527357
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 0xe38], ebx
mov eax, dword [ebp + 0xe34]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp + 0xe30]
mov dword [ebp + 0xe34], ebx
and eax, 0xffffefff
mov dword [ebp + 0xe30], eax
je 0x528148
mov eax, dword [ebp + 0xe30]
mov edi, 1
test ah, 0x20
mov esi, 2
je 0x5274c3
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xe68]
mov dword [esp + 0x48], 0x24
test al, al
mov dword [esp + 0x4c], 0x580a0
je 0x5273c8
mov dword [esp + 0x4c], 0x780b0
mov edi, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x34], edx
mov eax, 0x15888
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x60]
mov ecx, 1
mov word [esp + 0x44], dx
mov word [esp + 0x34], cx
mov word [esp + 0x36], cx
mov word [esp + 0x42], 0x10
mov word [esp + 0x40], 2
mov dword [esp + 0x38], 0xac44
mov word [esp + 0x44], bx
mov eax, dword [eax + 0x124]
lea esi, [ebp + 0xe34]
push ebx
lea edx, [esp + 0x4c]
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x5274a2
mov eax, dword [esi]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
fld dword [ebp + 0xfc]
fmul dword [edi + 0x30]
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
push edx
call fcn.00528e80
mov ecx, dword [esi]
add esp, 4
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov al, byte [ebp + 0xe68]
test al, al
je 0x5274a2
mov esi, dword [esi]
lea edi, [ebp + 0xe38]
push edi
push 0x5ad190
mov eax, dword [esi]
push esi
call dword [eax]
test eax, eax
jne 0x5274a2
mov edi, dword [edi]
lea edx, [ebp + 0xe3c]
push edx
push 0x5ad180
mov ecx, dword [edi]
push edi
call dword [ecx]
mov eax, dword [ebp + 0xe30]
and eax, 0xffffdfff
mov dword [ebp + 0xe30], eax
je 0x528148
mov edi, 1
mov esi, 2
mov eax, dword [ebp + 0xe30]
test ah, 8
je 0x527b64
mov eax, dword [ebp + 0xe08]
add eax, 0xffffefef
cmp eax, 3
ja case.default.0x5274e6
jmp dword [eax*4 + 0x528150]
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je case.default.0x5274e6
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
jmp case.default.0x5274e6
mov al, byte [ebp + 0xe02]
test al, al
je case.default.0x5274e6
mov eax, dword [ebp + 0xe34]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
test byte [esp + 0x1c], 1
je 0x52758b
mov eax, dword [ebp + 0xe34]
push eax
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp + 0xe34]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp + 0xe14]
cmp eax, ebx
je 0x52755a
mov dword [eax + 4], edi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x527550
mov dword [ebp + 0xe1c], ebx
mov dword [ebp + 0xe2c], ebx
mov dword [ebp + 0xe44], ebx
mov dword [ebp + 0xe50], ebx
mov dword [ebp + 0xe4c], ebx
mov byte [ebp + 0xe48], 0
mov dword [ebp + 0xe54], ebx
mov dword [ebp + 0xe58], ebx
mov eax, dword [ebp + 0xe18]
cmp eax, ebx
je 0x5275b7
cmp dword [ebp + 0xe28], ebx
jne 0x5275cd
mov dword [ebp + 0xe1c], eax
mov eax, dword [ebp + 0xe14]
cmp eax, ebx
je 0x5275b7
mov dword [eax + 4], esi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x5275ad
mov byte [ebp + 0xe02], 0
mov dword [ebp + 0xe08], 0x1014
jmp case.default.0x5274e6
cmp dword [ebp + 0xa8], edi
jne 0x5275ef
mov eax, dword [ebp + 0xe14]
cmp eax, ebx
je 0x5275e9
mov dword [eax + 4], edi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x5275df
mov dword [ebp + 0xe1c], ebx
mov edx, dword [ebp + 0xe2c]
mov ecx, dword [ebp + 0xe18]
cmp edx, ecx
jbe 0x527605
mov eax, edx
xor edx, edx
div ecx
mov esi, dword [ebp + 0xe14]
cmp edx, ebx
mov dword [esp + 0x10], esi
jbe 0x52761d
mov esi, dword [esi + 0xc]
dec edx
jne 0x527613
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x527659
mov ecx, 2
mov eax, dword [esi]
cmp eax, ebx
je 0x527631
cmp dword [eax + 8], ebx
jne 0x527674
mov dword [esi + 4], ecx
mov edi, dword [ebp + 0xe1c]
mov edx, dword [ebp + 0xe2c]
inc edi
mov dword [ebp + 0xe1c], edi
mov esi, dword [esi + 0xc]
inc edx
cmp esi, ebx
mov dword [ebp + 0xe2c], edx
jne 0x527626
mov dword [esp + 0x10], esi
mov byte [ebp + 0xe02], 0
mov dword [ebp + 0xe08], 0x1014
mov edi, 1
jmp case.default.0x5274e6
mov eax, dword [0x72bfb8]
mov dword [esp + 0x10], esi
cmp eax, ebx
jne 0x52769f
mov edx, dword [esp + 0x70]
mov eax, dword [0x72bf98]
push 1
push edx
push 0x526a10
push ebx
push eax
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov dword [0x72bfb8], eax
mov ebx, dword [esi]
mov eax, dword [ebp + 0xe44]
xor edi, edi
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xe50], edi
mov dword [ebp + 0xe58], edi
mov dword [ebp + 0xe54], edi
mov ecx, dword [ebx + 8]
sub ecx, eax
mov dword [ebp + 0xe4c], ecx
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0xc]
cmp eax, edi
je 0x5276fc
mov eax, dword [eax]
cmp eax, edi
je 0x5276e1
mov eax, dword [eax + 8]
jmp 0x5276e3
xor eax, eax
mov esi, dword [ebp + 0xe4c]
add esi, eax
mov dword [ebp + 0xe4c], esi
mov ecx, dword [ecx]
add ecx, 0xc
mov eax, dword [ecx]
cmp eax, edi
jne 0x5276d6
mov eax, dword [ebx]
cmp eax, 0x1100
je 0x52783d
cmp eax, 0x1101
je 0x52783d
cmp dword [ebp + 0xe40], edi
jne 0x527972
mov eax, dword [ebp + 0xe3c]
cmp eax, edi
je 0x527736
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp + 0xe3c], edi
mov eax, dword [ebp + 0xe38]
cmp eax, edi
je 0x52774c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 0xe38], edi
mov eax, dword [ebp + 0xe34]
lea esi, [ebp + 0xe34]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x48]
mov edx, dword [esp + 0x70]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ecx
mov dword [esi], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x60]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], 0x24
mov word [esp + 0x44], cx
mov dword [esp + 0x4c], 0x580a0
mov dword [esp + 0x50], 0x15888
mov word [esp + 0x34], 1
mov word [esp + 0x36], 2
mov word [esp + 0x42], 0x10
mov word [esp + 0x40], 4
mov dword [esp + 0x38], 0xac44
mov dword [esp + 0x3c], 0x2b110
mov word [esp + 0x44], cx
mov eax, dword [eax + 0x124]
push 0
lea edx, [esp + 0x4c]
push esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x527802
mov eax, dword [esi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esi], 0
je 0x52782e
fld dword [ebp + 0xfc]
mov edx, dword [esp + 0x70]
fmul dword [edx + 0x30]
fstp dword [esp + 0x74]
mov eax, dword [esp + 0x74]
push eax
call fcn.00528e80
mov esi, dword [esi]
add esp, 4
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x3c]
mov dword [ebp + 0xe40], 1
jmp 0x527970
cmp dword [ebp + 0xe40], 1
jne 0x527972
mov eax, dword [ebp + 0xe34]
lea esi, [ebp + 0xe34]
cmp eax, edi
je 0x527862
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xe68]
mov dword [esp + 0x48], 0x24
test al, al
mov dword [esp + 0x4c], 0x580a0
je 0x527891
mov dword [esp + 0x4c], 0x780b0
xor edx, edx
mov eax, 0x15888
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov ecx, 1
mov dword [esp + 0x40], edx
mov word [esp + 0x34], cx
mov word [esp + 0x36], cx
mov ecx, dword [eax + 0x60]
mov word [esp + 0x44], dx
mov word [esp + 0x42], 0x10
mov word [esp + 0x40], 2
mov dword [esp + 0x38], 0xac44
mov word [esp + 0x44], dx
mov eax, dword [ecx + 0x124]
push 0
lea ecx, [esp + 0x4c]
push esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x52793a
mov eax, dword [esi]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
mov eax, dword [esi]
lea edi, [ebp + 0xe38]
push edi
push 0x5ad190
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x52793a
mov edi, dword [edi]
lea eax, [ebp + 0xe3c]
push eax
push 0x5ad180
mov edx, dword [edi]
push edi
call dword [edx]
cmp dword [esi], 0
je 0x527966
fld dword [ebp + 0xfc]
mov ecx, dword [esp + 0x70]
fmul dword [ecx + 0x30]
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
push edx
call fcn.00528e80
mov esi, dword [esi]
add esp, 4
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x3c]
mov dword [ebp + 0xe40], 0
xor edi, edi
mov edx, dword [ebx + 0xc]
mov esi, dword [ebp + 0xe34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
fild qword [esp + 0x28]
mov eax, dword [esi]
mov dword [esp + 0x74], eax
fmul dword [ebp + 0x38]
call fcn.0050a970
push eax
mov eax, dword [esp + 0x78]
push esi
call dword [eax + 0x44]
mov eax, dword [ebp + 0xe34]
push 2
push 0
lea edx, [esp + 0x28]
mov ecx, dword [eax]
push 0
push edx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push eax
call dword [ecx + 0x2c]
xor edx, edx
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 4]
test eax, eax
je 0x5279d0
sub eax, dword [ebp + 0xe44]
mov esi, dword [ebp + 0xe44]
mov ecx, 0x15888
sub ecx, edx
add esi, edi
cmp eax, ecx
ja 0x527a38
mov edi, dword [esp + 0x14]
mov ecx, eax
mov ebx, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xe2c]
mov dword [ebp + 0xe44], 0
inc esi
mov dword [ebp + 0xe2c], esi
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x527a34
cmp dword [ebp + 0xa8], 1
jne 0x527a72
mov eax, dword [ebp + 0xe14]
mov dword [esp + 0x10], eax
mov ebx, dword [eax]
jmp 0x5279c0
mov eax, dword [esp + 0x14]
mov ecx, 0x15888
sub ecx, edx
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xe44]
mov ecx, 0x15888
sub ecx, edx
mov byte [ebp + 0xe48], 0
add eax, ecx
mov dword [ebp + 0xe44], eax
jmp 0x527aa6
cmp edx, 0x15888
jae 0x527aa6
mov edi, dword [esp + 0x14]
mov esi, 0x15888
sub esi, edx
add edi, edx
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xe5c], esi
mov byte [ebp + 0xe48], 1
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0xe34]
push 0
push 0
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
call dword [ecx + 0x4c]
xor ebx, ebx
mov edi, 1
jmp case.default.0x5274e6
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je case.default.0x5274e6
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov byte [ebp + 0xe04], 1
jmp case.default.0x5274e6
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je 0x527b2d
mov edx, dword [eax]
push eax
call dword [edx + 0x48]
mov eax, dword [ebp + 0xe34]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp + 0xe44], ebx
mov dword [ebp + 0xe50], ebx
mov dword [ebp + 0xe4c], ebx
mov byte [ebp + 0xe48], 0
mov dword [ebp + 0xe54], ebx
mov dword [ebp + 0xe58], ebx
mov dword [ebp + 0xe5c], ebx
mov eax, dword [ebp + 0xe14]
mov edx, dword [ebp + 0xe18]
cmp eax, ebx
mov dword [ebp + 0xe1c], edx
je case.default.0x5274e6
mov dword [eax + 4], esi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x527b43
mov eax, dword [ebp + 0xe30]
and eax, 0xfffff7ff
mov dword [ebp + 0xe30], eax
je 0x528148
test byte [ebp + 0xe30], 4
je 0x527bb9
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527bb9
fld dword [ebp + 0x5c]
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x54]
fchs
fstp dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
push edi
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x34]
push edx
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffffb
mov dword [ebp + 0xe30], eax
je 0x528148
test byte [ebp + 0xe30], 8
je 0x527c17
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527c17
fld dword [ebp + 0x94]
mov edx, dword [ebp + 0x90]
mov ecx, dword [ebp + 0x8c]
fchs
fstp dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
push edi
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x34]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffff7
mov dword [ebp + 0xe30], eax
je 0x528148
mov al, byte [ebp + 0xe30]
test al, al
jns 0x527c6f
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527c6f
fld dword [ebp + 0x78]
mov edx, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x70]
fchs
fstp dword [esp + 0x30]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x30]
push edi
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x34]
push edx
push eax
call dword [ecx + 0x38]
mov eax, dword [ebp + 0xe30]
and eax, 0xffffff7f
mov dword [ebp + 0xe30], eax
je 0x528148
mov eax, dword [ebp + 0xe30]
mov edi, 0x1012
test ah, 0x40
je 0x527d19
cmp dword [ebp + 0xe34], ebx
je 0x527ce8
cmp dword [ebp + 0xe08], edi
jne 0x527ce8
mov ecx, dword [ebp + 0xe5c]
cmp ecx, ebx
jbe 0x527cd4
mov edx, dword [ebp + 0xe58]
cmp edx, ecx
jae 0x527cb3
add edx, 0x15888
mov dword [ebp + 0xe58], edx
mov edx, dword [ebp + 0xe58]
mov dword [ebp + 0xe44], ebx
sub edx, ecx
mov dword [ebp + 0xe5c], ebx
mov dword [ebp + 0xe58], edx
mov byte [ebp + 0xe48], 0
mov ecx, dword [ebp + 0xe20]
mov edx, dword [ebp + 0xe4c]
add edx, ecx
mov dword [ebp + 0xe4c], edx
mov edx, dword [ebp + 0xe20]
mov esi, dword [ebp + 0xe28]
add esi, edx
and eax, 0xffffbfff
mov dword [ebp + 0xe28], esi
mov dword [ebp + 0xe20], ebx
mov dword [ebp + 0xe24], ebx
mov dword [ebp + 0xe30], eax
je 0x528148
mov eax, dword [ebp + 0xe30]
test ah, ah
jns 0x527d98
cmp dword [ebp + 0xe34], ebx
je 0x527d47
cmp dword [ebp + 0xe08], edi
jne 0x527d47
mov ecx, dword [ebp + 0xe20]
mov edx, dword [ebp + 0xe50]
sub edx, ecx
mov dword [ebp + 0xe50], edx
mov edx, dword [ebp + 0xe20]
mov esi, dword [ebp + 0xe28]
mov ecx, dword [ebp + 0xe08]
sub esi, edx
cmp ecx, edi
mov dword [ebp + 0xe28], esi
mov dword [ebp + 0xe24], ebx
mov dword [ebp + 0xe20], ebx
je 0x527d87
mov ecx, dword [ebp + 0xe14]
cmp ecx, ebx
je 0x527d7f
mov ecx, dword [ecx]
jmp 0x527d81
xor ecx, ecx
mov dword [ebp + 0xe0], ecx
and eax, 0xffff7fff
mov dword [ebp + 0xe30], eax
je 0x528148
test byte [ebp + 0xe30], 1
je 0x527de9
cmp dword [ebp + 0xe34], ebx
je 0x527de9
fld dword [ebp + 0xfc]
mov eax, dword [esp + 0x70]
fmul dword [eax + 0x30]
fstp dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00528e80
mov ecx, dword [ebp + 0xe34]
add esp, 4
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffffe
mov dword [ebp + 0xe30], eax
je 0x528148
test byte [ebp + 0xe30], 2
je 0x527e45
mov esi, dword [ebp + 0xe34]
cmp esi, ebx
je 0x527e45
mov eax, dword [ebp + 0xe0]
cmp eax, ebx
jne 0x527e0d
mov eax, 0xac44
jmp 0x527e10
mov eax, dword [eax + 0xc]
fld dword [ebp + 0x38]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
fimul dword [esp + 0x28]
mov edi, dword [esi]
call fcn.0050a970
push eax
push esi
call dword [edi + 0x44]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffffd
mov dword [ebp + 0xe30], eax
je 0x528148
mov edi, 0x1012
test byte [ebp + 0xe30], 0x20
je 0x527e7f
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527e7f
mov ecx, dword [eax]
push 1
fld dword [ebp + 0x364]
push ecx
fstp dword [esp]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp + 0xe30]
and eax, 0xffffffdf
mov dword [ebp + 0xe30], eax
je 0x528148
test byte [ebp + 0xe30], 0x40
je 0x527eb9
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527eb9
fld dword [ebp + 0x3b8]
mov edx, dword [eax]
push 1
push ecx
fstp dword [esp]
push eax
call dword [edx + 0x40]
mov eax, dword [ebp + 0xe30]
and eax, 0xffffffbf
mov dword [ebp + 0xe30], eax
je 0x528148
mov eax, dword [ebp + 0xe30]
test ah, 2
je 0x527f07
cmp dword [ebp + 0xe38], ebx
je 0x527f07
mov eax, dword [ebp + 0x39c]
mov ecx, eax
mov dword [esp + 0x70], eax
push ecx
call fcn.00528e80
mov ecx, dword [ebp + 0xe38]
add esp, 4
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x3c]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffdff
mov dword [ebp + 0xe30], eax
je 0x528148
test byte [ebp + 0xe30], 0x10
je 0x527f43
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x527f43
mov ecx, dword [eax]
xor edx, edx
cmp byte [ebp + 0xe03], dl
push 1
setne dl
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp + 0xe30]
and eax, 0xffffffef
mov dword [ebp + 0xe30], eax
je 0x528148
mov eax, dword [ebp + 0xe30]
test ah, 1
je 0x527f8e
mov esi, dword [ebp + 0xe38]
cmp esi, ebx
je 0x527f8e
fld dword [ebp + 0x1c]
mov edi, dword [esi]
push 1
call fcn.0050a970
fld dword [ebp]
push eax
call fcn.0050a970
push eax
push esi
call dword [edi + 0x34]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffeff
mov dword [ebp + 0xe30], eax
je 0x528148
mov edi, 0x1012
mov eax, dword [ebp + 0xe30]
test ah, 4
je 0x528148
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je 0x528139
cmp dword [ebp + 0xe08], edi
jne 0x528139
mov edx, dword [ebp + 0xa8]
mov ecx, 1
cmp edx, ecx
jne 0x528039
mov eax, dword [ebp + 0xe14]
mov dword [ebp + 0xe1c], ebx
cmp eax, ebx
mov dword [ebp + 0xe4c], ebx
je 0x527ff9
mov edx, dword [eax]
mov esi, dword [ebp + 0xe4c]
mov edx, dword [edx + 8]
add esi, edx
mov dword [ebp + 0xe4c], esi
mov dword [eax + 4], ecx
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x527fdc
mov eax, dword [ebp + 0xe5c]
cmp eax, ebx
jbe 0x52802d
mov ecx, dword [ebp + 0xe58]
cmp ecx, eax
jae 0x528019
add ecx, 0x15888
mov dword [ebp + 0xe58], ecx
mov ecx, dword [ebp + 0xe58]
mov dword [ebp + 0xe44], ebx
sub ecx, eax
mov dword [ebp + 0xe58], ecx
mov byte [ebp + 0xe48], 0
jmp 0x528139
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp + 0xe54]
mov edi, dword [esp + 0x18]
cmp eax, edi
jbe 0x52806b
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp + 0xe50]
add ecx, 0x15888
add eax, ecx
jmp 0x528077
mov edx, edi
sub edx, eax
mov eax, dword [ebp + 0xe50]
add eax, edx
mov ebx, dword [ebp + 0xe14]
mov dword [ebp + 0xe50], eax
mov eax, ebx
xor ecx, ecx
test eax, eax
mov dword [ebp + 0xe54], edi
je 0x52809d
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
add ecx, dword [edx + 8]
test eax, eax
jne 0x528091
mov eax, dword [ebp + 0xe50]
xor edx, edx
div ecx
mov eax, dword [esp + 0x24]
mov esi, ecx
sub esi, edx
cmp eax, edi
mov dword [ebp + 0xe4c], esi
jbe 0x5280bd
sub eax, edi
jmp 0x5280c4
sub eax, edi
add eax, 0x15888
cmp eax, esi
jle 0x5280d2
add esi, ecx
mov dword [ebp + 0xe4c], esi
jmp 0x52810b
mov eax, ebx
sub ecx, esi
xor edx, edx
test eax, eax
mov dword [ebp + 0xe1c], edx
je 0x52810b
mov esi, 2
mov ebx, dword [eax]
add edx, dword [ebx + 8]
cmp edx, ecx
jae 0x52810b
mov dword [eax + 4], esi
mov ebx, dword [ebp + 0xe1c]
mov eax, dword [eax + 0xc]
mov edi, dword [esp + 0x18]
inc ebx
test eax, eax
mov dword [ebp + 0xe1c], ebx
jne 0x5280e7
mov eax, dword [ebp + 0xe4c]
cmp eax, 0x15888
jge 0x528139
add eax, edi
cmp eax, 0x15888
mov dword [ebp + 0xe58], eax
jb 0x528132
add eax, 0xfffea778
mov dword [ebp + 0xe58], eax
mov byte [ebp + 0xe48], 1
mov eax, dword [ebp + 0xe30]
and ah, 0xfb
mov dword [ebp + 0xe30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret