Function at 0x53ad86
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1308
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5920a4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x5920a4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
and dword [esp + 0x14], 0
mov eax, dword [ebx + 0x1b4]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x24]
add eax, 0x2b0
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0050a4b8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x1e4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x24]
call fcn.0051536f
mov edi, eax
lea esi, [esp + 0x2c]
call fcn.0049a5f0
test al, al
je 0x53afa2
call fcn.0049eca0
mov eax, dword [eax]
cmp byte [eax + 0x529], 0
je 0x53af94
cmp dword [esp + 0x1c], 5
jge 0x53af7f
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 0x80]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10c]
call fcn.0049eca0
push dword [esp + 0x1c]
mov eax, dword [eax]
push ebx
mov dword [edi - 0x44], eax
call fcn.00516764
mov dword [edi + 0x14], eax
call fcn.0049eca0
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
cmp dword [eax + 0x84], 0
push 0xb8
je 0x53aee5
call fcn.004aa098
pop ecx
mov dword [esp + 0x24], eax
and dword [esp + 0xa0], 0
test eax, eax
je 0x53aecb
call fcn.0049eca0
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov eax, dword [eax + 0x84]
push dword [esp + 0x24]
mov edi, eax
call fcn.00453980
mov edi, dword [esp + 0x18]
jmp 0x53aecd
xor eax, eax
or dword [esp + 0xa0], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
call dword [edx + 0x108]
jmp 0x53af72
call fcn.004aa098
pop ecx
mov dword [esp + 0x24], eax
xor esi, esi
inc esi
test eax, eax
mov dword [esp + 0xa0], esi
je 0x53af3d
push str.debugMissingImg
lea ecx, [esp + 0x38]
call fcn.0044be60
mov byte [esp + 0xa0], 2
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0xac]
or dword [esp + 0x14], esi
lea ecx, [esp + 0x34]
push ecx
call fcn.0046c340
push dword [esp + 0x24]
mov edi, eax
call fcn.00453980
mov edi, dword [esp + 0x18]
jmp 0x53af3f
xor eax, eax
mov dword [esp + 0xa0], 3
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
call dword [edx + 0x108]
or dword [esp + 0xa0], 0xffffffff
test byte [esp + 0x14], 1
je 0x53af72
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x34]
call fcn.00416880
inc dword [esp + 0x1c]
add edi, 4
mov dword [esp + 0x18], edi
jmp 0x53af94
mov eax, dword [0x5ab9e4]
mov ecx, dword [eax]
push str.StageCompleteScreenNormal___fish_wants_to_be_displayed_in_count_up_screen__but_all_slots_are_already_full._n
push eax
call dword [ecx + 0xd0]
pop ecx
pop ecx
lea esi, [esp + 0x2c]
call fcn.00494200
jmp 0x53ae04
mov eax, dword [esp + 0x1c]
push 5
pop edi
cmp eax, edi
jge 0x53afdb
lea esi, [ebx + eax*4 + 0x1e4]
sub edi, eax
mov ecx, dword [esi - 0x14]
mov eax, dword [ecx]
push 0
call dword [eax + 0x80]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10c]
and dword [esi - 0x44], 0
and dword [esi + 0x14], 0
add esi, 4
dec edi
jne 0x53afb6
push ebx
call fcn.005166c2
push ebx
call fcn.0051d345
xor esi, esi
cmp dword [ebx + 0x1cc], esi
mov dword [ebx + 0x268], eax
jle 0x53b029
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0x3c]
cmp dword [eax + 0xc], esi
jne 0x53b020
mov byte [esp + 0x18], 1
xor al, al
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push eax
call dword [edx + 0x80]
push dword [esp + 0x18]
jmp 0x53b039
mov byte [esp + 0x18], 0
mov al, 1
jmp 0x53b00b
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
push esi
mov ecx, dword [ebx + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x80]
lea eax, [ebx + 0x1d0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 5
mov edi, 0x55050a
push edi
lea ecx, [esp + 0x38]
call fcn.0044be60
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov dword [esp + 0xa8], 4
push dword [eax]
call fcn.00408920
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00416880
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
add dword [esp + 0x18], 4
dec dword [esp + 0x14]
jne 0x53b05e
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [ebx + 0x1cc], esi
setg al
add eax, ecx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
lea eax, [esp + 0x74]
fmul qword [0x566be0]
fstp dword [esp + 0x18]
call fcn.00461fc0
cmp dword [esp + 0x1c], esi
mov dword [esp + 0xa0], 5
mov dword [esp + 0x14], esi
jle 0x53b16a
fld dword [esp + 0x18]
fmul qword [0x566760]
fstp qword [esp + 0x2c]
push dword [esp + 0x14]
lea esi, [esp + 0x78]
push str.fishGrp_d
call fcn.0044bd80
pop ecx
pop ecx
mov eax, esi
push eax
mov eax, ebx
call fcn.0046de50
fild dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
fmul qword [0x566be0]
fsub qword [esp + 0x2c]
fadd qword [0x566bd8]
fstp dword [esp + 0x24]
je 0x53b15a
mov esi, dword [eax]
mov ecx, eax
call dword [esi + 0xc]
fld dword [eax + 4]
push ecx
push ecx
mov ecx, dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call dword [esi + 0x18]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jl 0x53b0fe
xor esi, esi
cmp dword [ebx + 0x1cc], esi
jle 0x53b1f9
push str.bonusGrp
lea ecx, [esp + 0x38]
call fcn.0044be60
lea eax, [esp + 0x34]
push eax
mov eax, ebx
mov byte [esp + 0xa4], 6
call fcn.0046de50
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], eax
mov byte [esp + 0xa0], 5
call fcn.00416880
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, esi
fmul qword [0x566be0]
fld dword [esp + 0x18]
fmul qword [0x566760]
fsubp st(1)
fadd qword [0x566bd8]
fstp dword [esp + 0x24]
je 0x53b1f9
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
call dword [eax + 0xc]
fld dword [eax + 4]
mov eax, dword [esp + 0x20]
push ecx
push ecx
mov ecx, dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call dword [eax + 0x18]
push edi
lea ecx, [esp + 0x38]
call fcn.0044be60
lea eax, [esp + 0x34]
push eax
push esi
mov byte [esp + 0xa8], 7
push dword [ebx + 0x20c]
call fcn.00408920
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 5
call fcn.00416880
mov ecx, dword [ebx + 0x20c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
push edi
lea ecx, [esp + 0x38]
call fcn.0044be60
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xa4], 8
push dword [ebx + 0x268]
push dword [ebx + 0x258]
call fcn.00408920
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 5
call fcn.00416880
mov ecx, dword [ebx + 0x25c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx + 0x230]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx + 0x238]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
push 5
xor edx, edx
lea eax, [ebx + 0x1f8]
pop ecx
cmp dword [eax - 0x58], esi
je 0x53b2b4
add edx, dword [eax]
add eax, 4
dec ecx
jne 0x53b2ad
mov eax, dword [ebx + 0x1c8]
add eax, dword [ebx + 0x268]
mov ecx, dword [ebx + 0x1c0]
add edx, eax
mov eax, dword [ebx + 0x264]
add eax, ecx
push 1
push dword [ebx + 0x220]
add eax, edx
lea edi, [ebx + 0x1c4]
mov dword [edi], eax
call fcn.00422970
push dword [edi]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [0x5ac624]
call fcn.004a14c0
mov byte [esp + 0xa0], 9
push dword [ebx + 0x224]
mov ecx, eax
call fcn.0044b4f0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 5
call fcn.00416880
mov ecx, dword [ebx + 0x21c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx + 0x224]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebx + 0x22c]
cmp dword [eax + 0xc], 1
mov eax, dword [ecx]
jne 0x53b37a
push 1
call dword [eax + 0x80]
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0x3c]
push dword [eax + 0x2c]
mov edi, dword [ebx + 0x228]
call fcn.0048c830
xor esi, esi
jmp 0x53b381
push esi
call dword [eax + 0x80]
lea edi, [ebx + 0x240]
mov ecx, dword [edi]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [edi]
push 2
call fcn.00407ea0
add ebx, 0x244
mov ecx, dword [ebx]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx]
push 2
call fcn.00407ea0
lea ecx, [esp + 0x74]
call fcn.00416880
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004a9c82
mov esp, ebp
pop ebp
ret 4