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

Disassembly:
push 0xffffffffffffffff
push 0x5951ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov ebx, 0xf
xor edi, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
mov esi, dword [esp + 0xc4]
mov eax, esi
mov dword [esp + 0xbc], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537b36
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00404250
push esi
call fcn.004d2f40
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x54], esi
jne 0x537b7c
cmp dword [esp + 0x4c], 0x10
jb 0x538053
mov eax, dword [esp + 0x38]
push eax
call fcn.004796fd
add esp, 4
xor al, al
jmp 0x5380d7
mov ecx, esi
call fcn.004d05d0
test al, al
je 0x537c06
push 0x5b077c
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00409ce0
add esp, 0xc
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov byte [esp + 0xbc], 1
jb 0x537bb7
mov edx, dword [eax + 4]
jmp 0x537bba
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537bc0
sub eax, esi
push eax
push edx
mov ecx, 0x5e18d0
call fcn.00404250
cmp dword [esp + 0x70], edi
jb 0x537be8
mov eax, dword [esp + 0x5c]
push eax
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x4c], edi
jb 0x538053
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004796fd
add esp, 4
xor al, al
jmp 0x5380d7
mov ecx, esi
call fcn.004d0500
push 0xe
push str.sounddatacount
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
call fcn.00404250
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0xc4], 2
call fcn.004d15a0
mov ebx, eax
mov eax, dword [esp + 0x30]
neg ebx
sbb bl, bl
mov edi, 0x10
inc bl
cmp eax, edi
mov byte [esp + 0xbc], 0
jb 0x537c6d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004796fd
add esp, 4
test bl, bl
je 0x537cca
push 0x5b073c
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00409ce0
add esp, 0xc
cmp dword [eax + 0x18], edi
mov byte [esp + 0xbc], 3
jb 0x537c9a
mov edx, dword [eax + 4]
jmp 0x537c9d
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537ca2
sub eax, esi
push eax
push edx
mov ecx, 0x5e18d0
call fcn.00404250
cmp dword [esp + 0x70], edi
jb 0x538040
mov ecx, dword [esp + 0x5c]
jmp 0x538037
mov edi, dword [esp + 0xc8]
mov ecx, edi
call fcn.0049e020
mov ecx, dword [esp + 0x50]
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x30], esp
xor ebp, ebp
push ecx
mov dword [eax + 0x1c], 0xf
mov dword [eax + 0x18], ebp
mov ecx, edi
mov byte [eax + 8], 0
call fcn.00537960
xor edx, edx
mov dword [esp + 0x10], edx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x53805a
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 5
cmp edx, eax
jae 0x53805a
push edx
push str.sounddata_02d
lea eax, [esp + 0x98]
push 0x20
push eax
call fcn.0047a678
lea eax, [esp + 0xa0]
add esp, 0x10
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537d55
sub eax, edx
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404250
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xc4], 4
call fcn.004d0a40
mov ebx, eax
mov eax, dword [esp + 0x30]
neg ebx
sbb bl, bl
mov esi, 0x10
inc bl
cmp eax, esi
mov byte [esp + 0xbc], 0
jb 0x537db5
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004796fd
add esp, 4
test bl, bl
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jne 0x537ee0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
add ecx, 4
test eax, eax
je 0x537fdd
mov esi, dword [ecx + 8]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x537fdd
push 0
call fcn.00447d60
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x537e1d
mov eax, dword [eax + 4]
jmp 0x537e20
add eax, 4
mov esi, dword [edi + 4]
push eax
add esi, ebp
call fcn.0047a5b3
fstp dword [esi]
mov ecx, dword [esp + 0xd0]
add esp, 4
test ecx, ecx
je 0x537ea4
mov eax, dword [edi + 4]
add eax, ebp
push ecx
lea ecx, [eax + 4]
call fcn.00404b50
mov ecx, dword [esp + 0x14]
push 1
add ecx, 4
call fcn.00447d60
cmp dword [eax + 0x18], ebx
jb 0x537e80
mov ecx, dword [edi + 4]
mov eax, dword [eax + 4]
add ecx, ebp
push eax
add ecx, 4
call fcn.00404b20
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
add ebp, 0x20
mov edx, ecx
jmp 0x537d03
mov ecx, dword [edi + 4]
add eax, 4
add ecx, ebp
push eax
add ecx, 4
call fcn.00404b20
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
add ebp, 0x20
mov edx, ecx
jmp 0x537d03
mov ecx, dword [esp + 0x14]
push 1
add ecx, 4
call fcn.00447d60
cmp dword [eax + 0x18], ebx
jb 0x537ebc
mov ecx, dword [eax + 4]
jmp 0x537ebf
lea ecx, [eax + 4]
mov eax, dword [edi + 4]
add eax, ebp
push ecx
lea ecx, [eax + 4]
call fcn.00404b50
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
add ebp, 0x20
mov edx, ecx
jmp 0x537d03
push 0x5b0718
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.00409ce0
lea ecx, [esp + 0x9c]
push ecx
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0xd4], 5
call fcn.00409ce0
push 0x5b0704
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xe0], 6
call fcn.00409ce0
add esp, 0x24
cmp dword [eax + 0x18], esi
mov byte [esp + 0xbc], 7
jb 0x537f3c
mov edx, dword [eax + 4]
jmp 0x537f3f
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x537f44
sub eax, esi
push eax
push edx
mov ecx, 0x5e18d0
call fcn.00404250
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
jb 0x537f73
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004796fd
add esp, 4
mov eax, dword [esp + 0x70]
xor edi, edi
cmp eax, esi
mov ebx, 0xf
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1c], 0
jb 0x537f9c
mov edx, dword [esp + 0x5c]
push edx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
jb 0x537fbf
mov eax, dword [esp + 0x78]
push eax
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x4c], esi
jb 0x538053
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004796fd
add esp, 4
xor al, al
jmp 0x5380d7
push 0x5b06dc
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.00409ce0
add esp, 0xc
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov byte [esp + 0xbc], 8
jb 0x53800d
mov edx, dword [eax + 4]
jmp 0x538010
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x538015
sub eax, esi
push eax
push edx
mov ecx, 0x5e18d0
call fcn.00404250
cmp dword [esp + 0x8c], edi
jb 0x538040
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x4c], edi
jb 0x538053
mov edx, dword [esp + 0x38]
push edx
call fcn.004796fd
add esp, 4
xor al, al
jmp 0x5380d7
push 0x5b06d4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.00409ce0
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xbc], 9
jb 0x538084
mov edx, dword [eax + 4]
jmp 0x538087
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x538090
sub eax, esi
push eax
push edx
mov ecx, 0x5e18d0
call fcn.00404250
mov eax, dword [esp + 0x8c]
mov esi, 0x10
cmp eax, esi
jb 0x5380c2
mov edx, dword [esp + 0x78]
push edx
call fcn.004796fd
add esp, 4
cmp dword [esp + 0x4c], esi
jb 0x5380d5
mov eax, dword [esp + 0x38]
push eax
call fcn.004796fd
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret