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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
mov esi, ecx
mov ecx, edi
call fcn.004e5b20
cmp dword [esi + 8], 0
je 0x5013a9
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, edi
call fcn.004e51e0
cmp dword [esi + 0x14], 0
je 0x5013ca
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x2c]
cmp eax, 0x80000000
je 0x5013e8
test eax, eax
je 0x5013e8
push dword [esi + 0x30]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x50]
test eax, eax
je 0x501403
cmp dword [esi + 0x54], 0
je 0x501403
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x38]
cmp eax, 0x80000000
je 0x501421
test eax, eax
je 0x501421
push dword [esi + 0x3c]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x44]
cmp eax, 0x80000000
je 0x50143f
test eax, eax
je 0x50143f
push dword [esi + 0x48]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
cmp dword [esi + 0x20], 0
je 0x501455
push dword [esi + 0x24]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov ecx, edi
call fcn.004e6190
cmp dword [esi + 0x5c], 0
je 0x501476
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x70]
test edi, edi
je 0x5014d0
mov ebx, dword [esi + 0x6c]
add ebx, 0x28
jmp 0x501496
add ebx, 0x30
dec edi
je 0x5014d0
mov eax, dword [ebx - 0x18]
cmp eax, 0x80000000
je 0x5014b4
test eax, eax
je 0x5014b4
push dword [ebx - 0x14]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebx - 4]
test eax, eax
je 0x501490
cmp dword [ebx], 0
je 0x501490
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x501490
cmp dword [esi + 0x68], 0
je 0x5014e6
push dword [esi + 0x6c]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x501507
cmp dword [esi + 0xfc], 0
je 0x501507
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x7c]
test edi, edi
je 0x50153d
mov ebx, dword [esi + 0x78]
add ebx, 4
jmp 0x501526
add ebx, 0xc
dec edi
je 0x50153d
cmp dword [ebx - 4], 0
je 0x501520
push dword [ebx]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x501520
cmp dword [esi + 0x74], 0
je 0x501553
push dword [esi + 0x78]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x88]
test edi, edi
je 0x50158d
mov ebx, dword [esi + 0x84]
add ebx, 4
jmp 0x501576
add ebx, 0xc
dec edi
je 0x50158d
cmp dword [ebx - 4], 0
je 0x501570
push dword [ebx]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x501570
cmp dword [esi + 0x80], 0
je 0x5015a9
push dword [esi + 0x84]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov ecx, edi
call fcn.004e5da0
cmp dword [esi + 0x8c], 0
je 0x5015d3
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0x9c]
mov edx, dword [esi + 0xa0]
mov ecx, edi
call fcn.004e64a0
cmp dword [esi + 0x98], 0
je 0x5015fd
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
mov ecx, edi
call fcn.004e6220
cmp dword [esi + 0xa4], 0
je 0x501627
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov ecx, edi
call fcn.004e55b0
cmp dword [esi + 0xb0], 0
je 0x501651
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xc0]
mov edx, dword [esi + 0xc4]
mov ecx, edi
call fcn.004e63f0
cmp dword [esi + 0xbc], 0
je 0x50167b
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xd0]
test edi, edi
je 0x5016d0
mov ebx, dword [esi + 0xcc]
add ebx, 0x10
jmp 0x501696
add ebx, 0x1c
dec edi
je 0x5016d0
mov eax, dword [ebx - 0x10]
cmp eax, 0x80000000
je 0x5016b4
test eax, eax
je 0x5016b4
push dword [ebx - 0xc]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebx - 4]
test eax, eax
je 0x501690
cmp dword [ebx], 0
je 0x501690
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x501690
cmp dword [esi + 0xc8], 0
je 0x5016ec
push dword [esi + 0xcc]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xd8]
mov edx, dword [esi + 0xdc]
mov ecx, edi
call fcn.004e5350
cmp dword [esi + 0xd4], 0
je 0x501716
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xe4]
mov edx, dword [esi + 0xe8]
mov ecx, edi
call fcn.004e57f0
cmp dword [esi + 0xe0], 0
je 0x501740
push edi
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esi + 0xf4]
test edi, edi
je 0x5017a0
mov ebx, dword [esi + 0xf0]
add ebx, 0x1c
jmp 0x501766
add ebx, 0x24
dec edi
je 0x5017a0
mov eax, dword [ebx - 0x14]
cmp eax, 0x80000000
je 0x501784
test eax, eax
je 0x501784
push dword [ebx - 0x10]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebx - 4]
test eax, eax
je 0x501760
cmp dword [ebx], 0
je 0x501760
push eax
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x501760
cmp dword [esi + 0xec], 0
je 0x5017bc
push dword [esi + 0xf0]
push 0
push dword [0x5920d8]
call sub.KERNEL32.dll_HeapFree
pop esi
pop edi
pop ebx
pop ebp
ret