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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x721bb0]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x106a554]
mov dword [esp + 0x174], eax
lea eax, [esp + 0x64]
push eax
add ecx, 0x220
call fcn.005e5ddb
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x106a554]
call fcn.005c7447
mov ecx, dword [0x106a554]
lea edx, [esp + 0x34]
push edx
call fcn.005c74e7
lea ecx, [esp + 0x40]
call fcn.00413a3f
lea ecx, [esp + 0x34]
call fcn.00413a3f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
call fcn.005b51f0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax + 0xa0]
call fcn.005fd7c0
call fcn.005b51f0
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [eax + 0xa0]
call fcn.005fd780
mov edx, dword [0x1209fd4]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x1c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.005d4b31
mov ecx, eax
call fcn.005d4f49
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
push esi
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.005d3ace
mov ecx, eax
call fcn.005d437b
mov ecx, dword [0x106a674]
call fcn.005bbf85
cmp dword [0x106a438], 1
jne 0x59e045
mov ecx, 0x106cb40
call fcn.005bd310
mov ecx, 0x106cb40
call fcn.005bdc30
test al, al
je 0x59e045
mov ecx, 0x106cb40
call fcn.005bc850
mov ecx, 0x106cb40
call fcn.005bde00
fld dword [ebp + 8]
fmul dword [0x6edf58]
fadd dword [0x129a2bc]
fstp dword [0x129a2bc]
fld dword [ebp + 8]
call fcn.00693530
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
push ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fdiv dword [0x6e4e78]
fstp dword [esp]
call fcn.005fc760
mov esi, dword [esp + 0x18]
add esp, 4
push esi
mov ecx, 0x106cd50
call fcn.005f1690
push esi
mov ecx, 0x106cb40
call fcn.005bcab0
mov al, byte [edi + 0x1ad]
test al, al
je 0x59e0b3
mov ecx, dword [0x106a650]
call fcn.005c5008
fld dword [ebp + 8]
mov ecx, 1
fsub dword [0x6d4fc8]
fstp dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
fld dword [0x6d4fc8]
mov dword [esp + 0x14], ebx
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x59e12b
mov edi, edi
fld dword [0x106a55c]
fadd dword [0x106a624]
fstp dword [0x106a624]
fld dword [0x106a624]
fcomp dword [0x6d5764]
fnstsw ax
test ah, 1
jne 0x59e10f
mov dword [0x106a624], 0
inc ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jnp 0x59e0e0
mov edx, dword [0x106a558]
mov eax, dword [0x106a624]
push edx
push eax
mov ecx, 0x106cd50
call fcn.005ee720
mov ecx, dword [0x106a660]
xor esi, esi
cmp ecx, esi
je 0x59e153
call fcn.005fc0a4
mov ecx, dword [0x106a684]
cmp ecx, esi
je 0x59e162
call fcn.005d5342
mov ecx, dword [0x106a688]
cmp ecx, esi
je 0x59e171
call fcn.005fbdc0
fld dword [ebp + 8]
fcomp dword [edi + 0x1b0]
fnstsw ax
test ah, 1
jne 0x59e1e2
mov edx, dword [edi + 0x1b4]
mov ecx, dword [edi + 0x1b8]
inc edx
mov eax, edx
cmp eax, ecx
mov dword [edi + 0x1b4], edx
jne 0x59e50f
fld dword [edi + 0x1b0]
mov dword [edi + 0x1b4], esi
fcomp dword [0x6d68ac]
fnstsw ax
test ah, 5
jp 0x59e50f
fld dword [edi + 0x1b0]
fadd dword [0x6d61a8]
fstp dword [edi + 0x1b0]
mov ecx, dword [esp + 0x174]
call fcn.00692fc7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x106a8b4
mov dword [edi + 0x1b4], esi
call fcn.005ce8e0
cmp dword [0x106a600], esi
jne 0x59e272
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x106a554]
add ecx, 0x220
call fcn.005e5ddb
fld dword [0x6d4fc8]
mov dword [esp + 0x14], ebx
fcomp dword [esp + 0x14]
mov esi, 1
fnstsw ax
test ah, 5
jp 0x59e256
lea ebx, [ebx]
mov ecx, 0x106a8b4
call fcn.005d2150
inc esi
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jnp 0x59e230
fld dword [ebp + 8]
fcomp dword [0x6d4fc8]
fnstsw ax
test ah, 1
jne 0x59e272
push 0xffffffffffffffff
mov ecx, 0x106a8b4
call fcn.005d38b0
mov eax, dword [0x106a600]
mov esi, 1
cmp eax, esi
jne 0x59e2d7
fld dword [0x6d4fc8]
mov dword [esp + 0x14], ebx
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x59e2bb
mov ecx, 0x106a8b4
call fcn.005d2150
inc esi
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jnp 0x59e295
fld dword [ebp + 8]
fcomp dword [0x6d4fc8]
fnstsw ax
test ah, 1
jne 0x59e2d7
push 0xffffffffffffffff
mov ecx, 0x106a8b4
call fcn.005d38b0
cmp dword [0x106a600], 2
jne 0x59e31a
fld dword [0x6d4fc8]
mov esi, 1
fcomp dword [ebp + 8]
fnstsw ax
test ah, 5
jp 0x59e31a
mov ecx, 0x106a8b4
call fcn.005d2150
inc esi
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp dword [ebp + 8]
fnstsw ax
test ah, 5
jnp 0x59e2f5
mov ecx, edi
call fcn.0059ccd0
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, eax
jle 0x59e35f
jmp 0x59e330
test esi, esi
je 0x59e33d
push 1
mov ecx, esi
call fcn.005dd040
mov ecx, 0x106a7a8
call fcn.005b2ae0
mov ecx, dword [0x106a64c]
test ecx, ecx
je 0x59e35c
push 0
push 0
push 0
call fcn.00658e20
dec edi
jne 0x59e330
mov edx, dword [0x106a654]
test edx, edx
je 0x59e4f4
fld dword [0x71c754]
xor eax, eax
fcomp dword [0x6d070c]
mov byte [esp + 0x70], 0
mov ecx, 0x3f
lea edi, [esp + 0x71]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
fnstsw ax
test ah, 0x41
jp 0x59e475
fld dword [0x71c754]
fcomp dword [0x6f3614]
fnstsw ax
test ah, 1
jne 0x59e407
mov al, byte [0x10708cc]
test al, al
jne 0x59e407
push str.heart.wav
push 0x71f6b0
lea edx, [esp + 0x78]
push 0x6d5058
push edx
mov byte [0x10708cc], 1
call fcn.006935d4
add esp, 0x10
push 1
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.005b51f0
mov ecx, eax
call fcn.005b4840
mov edx, dword [esp + 0x18]
mov byte [edx + 0x15], 1
mov ecx, dword [esp + 0x18]
call fcn.005bbd70
mov edx, dword [0x106a654]
mov al, byte [edx + 0x129]
test al, al
jne 0x59e41e
mov byte [edx + 0x11e], 1
mov edx, dword [0x106a654]
fld dword [0x71c754]
fcomp dword [0x6e2764]
fnstsw ax
mov al, byte [edx + 0x11f]
test ah, 0x41
jp 0x59e444
test al, al
jne 0x59e44f
mov byte [edx + 0x114], 1
jmp 0x59e44f
test al, al
jne 0x59e44f
mov byte [edx + 0x114], 0
cmp byte [0x10708cc], 1
jne 0x59e4f4
fld dword [0x71c754]
fcomp dword [0x6f3614]
fnstsw ax
test ah, 0x41
jp 0x59e4f4
jmp 0x59e4b0
mov al, byte [edx + 0x11e]
test al, al
je 0x59e4f4
mov al, byte [edx + 0x129]
test al, al
jne 0x59e496
mov byte [edx + 0x11e], 0
mov edx, dword [0x106a654]
mov al, byte [edx + 0x11f]
test al, al
jne 0x59e4a7
mov byte [edx + 0x114], 0
mov al, byte [0x10708cc]
test al, al
je 0x59e4f4
push str.heart.wav
push 0x71f6b0
lea eax, [esp + 0x78]
push 0x6d5058
push eax
call fcn.006935d4
add esp, 0x10
lea ecx, [esp + 0x70]
push 1
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.005b51f0
mov ecx, eax
call fcn.005b4840
mov ecx, dword [esp + 0x10]
call fcn.005bb840
mov byte [0x10708cc], 0
mov ecx, dword [0x106a684]
test ecx, ecx
je 0x59e505
push 0xb
call fcn.005d5444
mov ecx, 0x106a918
call fcn.005f2a00
mov ecx, dword [esp + 0x174]
call fcn.00692fc7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4