Function at 0x526310
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 0x52634c
mov eax, dword [esp + 0x70]
push ebp
push eax
call fcn.00526160
mov eax, dword [ebp + 0xe30]
add esp, 8
and eax, 0xfffeffff
mov dword [ebp + 0xe30], eax
je 0x527188
mov eax, dword [ebp + 0xe30]
xor ebx, ebx
cmp eax, 0x1000
jne 0x5263c0
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je 0x5263c0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp + 0xe3c]
cmp eax, ebx
je 0x526381
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp + 0xe3c], ebx
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526397
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 0x527188
mov eax, dword [ebp + 0xe30]
mov edi, 1
test ah, 0x20
mov esi, 2
je 0x526503
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 0x526408
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 0x5264e2
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.00527ec0
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 0x5264e2
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 0x5264e2
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 0x527188
mov edi, 1
mov esi, 2
mov eax, dword [ebp + 0xe30]
test ah, 8
je 0x526ba4
mov eax, dword [ebp + 0xe08]
add eax, 0xffffefef
cmp eax, 3
ja case.default.0x526526
jmp dword [eax*4 + 0x527190]
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je case.default.0x526526
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
jmp case.default.0x526526
mov al, byte [ebp + 0xe02]
test al, al
je case.default.0x526526
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 0x5265cb
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 0x52659a
mov dword [eax + 4], edi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x526590
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 0x5265f7
cmp dword [ebp + 0xe28], ebx
jne 0x52660d
mov dword [ebp + 0xe1c], eax
mov eax, dword [ebp + 0xe14]
cmp eax, ebx
je 0x5265f7
mov dword [eax + 4], esi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x5265ed
mov byte [ebp + 0xe02], 0
mov dword [ebp + 0xe08], 0x1014
jmp case.default.0x526526
cmp dword [ebp + 0xa8], edi
jne 0x52662f
mov eax, dword [ebp + 0xe14]
cmp eax, ebx
je 0x526629
mov dword [eax + 4], edi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x52661f
mov dword [ebp + 0xe1c], ebx
mov edx, dword [ebp + 0xe2c]
mov ecx, dword [ebp + 0xe18]
cmp edx, ecx
jbe 0x526645
mov eax, edx
xor edx, edx
div ecx
mov esi, dword [ebp + 0xe14]
cmp edx, ebx
mov dword [esp + 0x10], esi
jbe 0x52665d
mov esi, dword [esi + 0xc]
dec edx
jne 0x526653
mov dword [esp + 0x10], esi
cmp esi, ebx
je 0x526699
mov ecx, 2
mov eax, dword [esi]
cmp eax, ebx
je 0x526671
cmp dword [eax + 8], ebx
jne 0x5266b4
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 0x526666
mov dword [esp + 0x10], esi
mov byte [ebp + 0xe02], 0
mov dword [ebp + 0xe08], 0x1014
mov edi, 1
jmp case.default.0x526526
mov eax, dword [0x72c218]
mov dword [esp + 0x10], esi
cmp eax, ebx
jne 0x5266df
mov edx, dword [esp + 0x70]
mov eax, dword [0x72c1f8]
push 1
push edx
push 0x525a50
push ebx
push eax
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov dword [0x72c218], 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 0x52673c
mov eax, dword [eax]
cmp eax, edi
je 0x526721
mov eax, dword [eax + 8]
jmp 0x526723
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 0x526716
mov eax, dword [ebx]
cmp eax, 0x1100
je 0x52687d
cmp eax, 0x1101
je 0x52687d
cmp dword [ebp + 0xe40], edi
jne 0x5269b2
mov eax, dword [ebp + 0xe3c]
cmp eax, edi
je 0x526776
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp + 0xe3c], edi
mov eax, dword [ebp + 0xe38]
cmp eax, edi
je 0x52678c
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 0x526842
mov eax, dword [esi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esi], 0
je 0x52686e
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.00527ec0
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 0x5269b0
cmp dword [ebp + 0xe40], 1
jne 0x5269b2
mov eax, dword [ebp + 0xe34]
lea esi, [ebp + 0xe34]
cmp eax, edi
je 0x5268a2
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 0x5268d1
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 0x52697a
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 0x52697a
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 0x5269a6
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.00527ec0
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.00509960
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 0x526a10
sub eax, dword [ebp + 0xe44]
mov esi, dword [ebp + 0xe44]
mov ecx, 0x15888
sub ecx, edx
add esi, edi
cmp eax, ecx
ja 0x526a78
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 0x526a74
cmp dword [ebp + 0xa8], 1
jne 0x526ab2
mov eax, dword [ebp + 0xe14]
mov dword [esp + 0x10], eax
mov ebx, dword [eax]
jmp 0x526a00
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 0x526ae6
cmp edx, 0x15888
jae 0x526ae6
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.0x526526
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je case.default.0x526526
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov byte [ebp + 0xe04], 1
jmp case.default.0x526526
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je 0x526b6d
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.0x526526
mov dword [eax + 4], esi
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x526b83
mov eax, dword [ebp + 0xe30]
and eax, 0xfffff7ff
mov dword [ebp + 0xe30], eax
je 0x527188
test byte [ebp + 0xe30], 4
je 0x526bf9
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526bf9
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 0x527188
test byte [ebp + 0xe30], 8
je 0x526c57
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526c57
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 0x527188
mov al, byte [ebp + 0xe30]
test al, al
jns 0x526caf
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526caf
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 0x527188
mov eax, dword [ebp + 0xe30]
mov edi, 0x1012
test ah, 0x40
je 0x526d59
cmp dword [ebp + 0xe34], ebx
je 0x526d28
cmp dword [ebp + 0xe08], edi
jne 0x526d28
mov ecx, dword [ebp + 0xe5c]
cmp ecx, ebx
jbe 0x526d14
mov edx, dword [ebp + 0xe58]
cmp edx, ecx
jae 0x526cf3
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 0x527188
mov eax, dword [ebp + 0xe30]
test ah, ah
jns 0x526dd8
cmp dword [ebp + 0xe34], ebx
je 0x526d87
cmp dword [ebp + 0xe08], edi
jne 0x526d87
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 0x526dc7
mov ecx, dword [ebp + 0xe14]
cmp ecx, ebx
je 0x526dbf
mov ecx, dword [ecx]
jmp 0x526dc1
xor ecx, ecx
mov dword [ebp + 0xe0], ecx
and eax, 0xffff7fff
mov dword [ebp + 0xe30], eax
je 0x527188
test byte [ebp + 0xe30], 1
je 0x526e29
cmp dword [ebp + 0xe34], ebx
je 0x526e29
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.00527ec0
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 0x527188
test byte [ebp + 0xe30], 2
je 0x526e85
mov esi, dword [ebp + 0xe34]
cmp esi, ebx
je 0x526e85
mov eax, dword [ebp + 0xe0]
cmp eax, ebx
jne 0x526e4d
mov eax, 0xac44
jmp 0x526e50
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.00509960
push eax
push esi
call dword [edi + 0x44]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffffd
mov dword [ebp + 0xe30], eax
je 0x527188
mov edi, 0x1012
test byte [ebp + 0xe30], 0x20
je 0x526ebf
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526ebf
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 0x527188
test byte [ebp + 0xe30], 0x40
je 0x526ef9
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526ef9
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 0x527188
mov eax, dword [ebp + 0xe30]
test ah, 2
je 0x526f47
cmp dword [ebp + 0xe38], ebx
je 0x526f47
mov eax, dword [ebp + 0x39c]
mov ecx, eax
mov dword [esp + 0x70], eax
push ecx
call fcn.00527ec0
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 0x527188
test byte [ebp + 0xe30], 0x10
je 0x526f83
mov eax, dword [ebp + 0xe38]
cmp eax, ebx
je 0x526f83
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 0x527188
mov eax, dword [ebp + 0xe30]
test ah, 1
je 0x526fce
mov esi, dword [ebp + 0xe38]
cmp esi, ebx
je 0x526fce
fld dword [ebp + 0x1c]
mov edi, dword [esi]
push 1
call fcn.00509960
fld dword [ebp]
push eax
call fcn.00509960
push eax
push esi
call dword [edi + 0x34]
mov eax, dword [ebp + 0xe30]
and eax, 0xfffffeff
mov dword [ebp + 0xe30], eax
je 0x527188
mov edi, 0x1012
mov eax, dword [ebp + 0xe30]
test ah, 4
je 0x527188
mov eax, dword [ebp + 0xe34]
cmp eax, ebx
je 0x527179
cmp dword [ebp + 0xe08], edi
jne 0x527179
mov edx, dword [ebp + 0xa8]
mov ecx, 1
cmp edx, ecx
jne 0x527079
mov eax, dword [ebp + 0xe14]
mov dword [ebp + 0xe1c], ebx
cmp eax, ebx
mov dword [ebp + 0xe4c], ebx
je 0x527039
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 0x52701c
mov eax, dword [ebp + 0xe5c]
cmp eax, ebx
jbe 0x52706d
mov ecx, dword [ebp + 0xe58]
cmp ecx, eax
jae 0x527059
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 0x527179
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 0x5270ab
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp + 0xe50]
add ecx, 0x15888
add eax, ecx
jmp 0x5270b7
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 0x5270dd
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
add ecx, dword [edx + 8]
test eax, eax
jne 0x5270d1
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 0x5270fd
sub eax, edi
jmp 0x527104
sub eax, edi
add eax, 0x15888
cmp eax, esi
jle 0x527112
add esi, ecx
mov dword [ebp + 0xe4c], esi
jmp 0x52714b
mov eax, ebx
sub ecx, esi
xor edx, edx
test eax, eax
mov dword [ebp + 0xe1c], edx
je 0x52714b
mov esi, 2
mov ebx, dword [eax]
add edx, dword [ebx + 8]
cmp edx, ecx
jae 0x52714b
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 0x527127
mov eax, dword [ebp + 0xe4c]
cmp eax, 0x15888
jge 0x527179
add eax, edi
cmp eax, 0x15888
mov dword [ebp + 0xe58], eax
jb 0x527172
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