Function at 0x597670
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004418e0
add esp, 0x10
and eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00440a50
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00440b20
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 6
ja case.0x5976eb.2
mov ecx, dword [ebp - 0x20]
jmp dword [ecx*4 + 0x597888]
xor eax, eax
jmp 0x597881
mov edx, dword [ebp - 8]
cmp edx, dword [0x708c44]
jne 0x597736
cmp dword [0x730fe8], 0
je 0x597734
push 0x6eb934
mov eax, dword [0x730fe8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
movzx eax, byte [ebp - 4]
push eax
call dword [ebp - 0x1c]
add esp, 0xc
jmp 0x5977b0
mov ecx, dword [ebp - 8]
cmp ecx, dword [0x708c48]
jne 0x597774
cmp dword [0x730fec], 0
je 0x597772
push 0x6eb934
mov edx, dword [0x730fec]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp - 4]
push edx
call dword [ebp - 0x1c]
add esp, 0xc
jmp 0x5977b0
mov eax, dword [ebp - 8]
cmp eax, dword [0x708c50]
jne 0x5977b0
cmp dword [0x730fec], 0
je 0x5977b0
push 0x6eb934
mov ecx, dword [0x730fec]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, byte [ebp - 4]
push ecx
call dword [ebp - 0x1c]
add esp, 0xc
jmp 0x59787e
cmp dword [0x730ffc], 0
je 0x5977e6
push 0x6eb924
mov edx, dword [0x730ffc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp - 4]
push edx
call dword [ebp - 0x10]
add esp, 0xc
jmp 0x59787e
cmp dword [0x73100c], 0
je 0x59781b
push 0x6eb924
mov eax, dword [0x73100c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
movzx eax, byte [ebp - 4]
push eax
call dword [ebp - 0x10]
add esp, 0xc
jmp 0x59787e
cmp dword [0x731010], 0
je 0x59787e
cmp dword [ebp - 4], 0
jne 0x597856
push 0x6eb934
mov ecx, dword [0x731010]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, byte [ebp - 4]
push ecx
call dword [ebp - 0x10]
add esp, 0xc
jmp 0x59787e
push 0x6eb924
mov edx, dword [0x731010]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, byte [ebp - 4]
push edx
call dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret