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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x78]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x18]
lea edx, [eax + 1]
test eax, eax
mov dword [esp + 0x48], edx
mov dword [esi + 0x18], edx
jne 0x507b23
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x40], eax
add eax, ecx
mov dword [esp + 0x44], edx
adc edx, ebx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov ebp, dword [edx + 0x14]
test ebp, ebp
jle 0x507a0a
mov ecx, dword [esp + 0x78]
mov edi, dword [esi + 0x14]
xor esi, esi
mov ebx, dword [edx]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x34], ecx
jmp 0x507922
add esi, 1
add ebx, 0x14
cmp esi, ebp
je 0x507a18
cmp dword [ebx + 4], edi
jne 0x507914
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x507914
cmp byte [ebx + 0x10], 0x42
je 0x507a4d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 0x1c]
cmp edx, dword [ecx]
je 0x507aa8
mov eax, dword [eax + 0x10]
lea esi, [edx + edx*2]
mov edx, 0x30
shl esi, 4
add esi, eax
test esi, 1
mov edi, esi
jne 0x507b16
test edi, 2
jne 0x507b06
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x50799e
mov word [edi], 0
add edi, 2
and edx, 1
je 0x5079a6
mov byte [edi], 0
mov edx, dword [esp + 0x2c]
add dword [edx + 0x1c], 1
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esi], edx
mov dword [esi + 0x24], eax
movzx eax, word [ecx + 0x1c]
mov word [esi + 0x28], ax
movzx eax, byte [ecx + 0x1e]
mov byte [esi + 0x2a], al
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x78]
sub eax, 1
mov dword [esi + 0x18], eax
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esi + 0x10]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x78]
mov edi, dword [esi + 0x14]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.Tone_set___.s__not_defined_n
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.00acfa00
mov eax, 0xffffffea
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 8]
mov edx, dword [esp + 0x2c]
mov ebp, dword [ebx + 0xc]
shl esi, 5
add esi, dword [edx + 0xc]
test ebp, ebp
jle 0x5079f2
mov ebp, dword [esp + 0x4c]
xor edi, edi
mov eax, dword [esp + 0x38]
mov ecx, ebp
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
call fcn.005078a0
test eax, eax
js 0x507a45
add edi, 1
add esi, 0x20
cmp dword [ebx + 0xc], edi
jg 0x507a67
mov esi, dword [esp + 0x78]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x48], esi
jmp 0x5079f2
cmp edx, 0x3fffffff
mov eax, 0x3fffffff
cmovle eax, edx
lea edi, [eax + eax]
mov eax, 0x20
cmp edi, 0x20
cmovl edi, eax
xor esi, esi
cmp edx, edi
jge 0x5079bf
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], 0x30
mov dword [esp + 4], edi
mov eax, dword [edx + 0x10]
mov dword [esp], eax
call fcn.00ad0170
mov edx, dword [esp + 0x2c]
test eax, eax
mov dword [edx + 0x10], eax
je 0x5079ae
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edi
mov edx, dword [edx + 0x1c]
jmp 0x507961
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x507988
mov byte [esi], 0
lea edi, [esi + 1]
mov dl, 0x2f
jmp 0x50797c
mov eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 8], str.Recursion_loop_on___.s__n
mov dword [esp + 0xc], eax
jmp 0x507a2c