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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edi, dword [eax]
test edi, edi
jne 0x66675333
mov ebx, ecx
mov ebp, edx
mov edi, eax
mov eax, dword [ebx]
cmp eax, 5
je 0x66675340
cmp eax, 2
je 0x66675333
mov ecx, dword [ebx + 0xc]
cmp eax, 4
jne 0x666752fe
mov eax, dword [esi]
mov ebp, ecx
mov dword [eax], ecx
add eax, 4
mov dword [esi], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], edi
mov edx, ebp
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call fcn.666752c0
cmp dword [ebx], 4
jne 0x6667532a
mov eax, dword [esi]
mov ebp, dword [ebx + 0x10]
add eax, 4
mov dword [eax - 4], ebp
mov dword [esi], eax
mov eax, dword [edi]
mov ebx, dword [ebx + 0x10]
test eax, eax
je 0x666752df
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x78]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x38], ebp
mov ebx, dword [edi]
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x66675333
add eax, 0x48
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
lea esi, [esi]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
cmp dword [eax + 0x40], edi
jle 0x66675333
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x1c]
mov edi, dword [eax]
lea eax, [edi + 0x18]
mov dword [esp + 0x30], edi
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov dword [edi + 4], edx
mov dword [edi], eax
mov eax, dword [eax + 0x44]
mov dword [edi + 0xc], esi
mov esi, dword [esp + 0x28]
mov dword [edi + 0x14], eax
mov dword [edi + 8], esi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
mov edx, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
mov edi, dword [edx + 0xf4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], edi
cmp eax, ebx
jle 0x666754c3
mov edx, dword [esp + 0x2c]
add ebx, 1
mov edx, dword [edx]
jmp 0x666753f5
mov ecx, ebx
add ebx, 1
cmp eax, ecx
jle 0x66675488
mov ebp, dword [edx + ebx*4 - 4]
mov ecx, dword [ebp + 0x38]
test ecx, ecx
jne 0x666753e8
cmp byte [ebp + 5], 0
jne 0x666753e8
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], esi
sbb edx, edi
jl 0x666753d1
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x34]
jmp 0x66675446
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
add eax, 0x22
cmp ecx, eax
jg 0x66675436
cdq
idiv ecx
add dword [esp + 0x18], eax
add esi, 1
mov eax, dword [ebp + 0x14]
adc edi, 0
cmp dword [ebp + 0x10], esi
sbb eax, edi
jl 0x666754b0
lea eax, [esp + 0x4c]
mov dword [esp + 8], 0
mov edx, esi
mov ecx, edi
mov dword [esp + 4], eax
mov eax, ebx
mov dword [esp], 0
call fcn.66667c60
test eax, eax
je 0x66675420
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov dword [esi + 0x10], edi
mov esi, dword [esp + 0x78]
mov dword [esi], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
mov dword [eax + 0x10], edi
mov eax, dword [esp + 0x78]
mov dword [eax], 0
add dword [esp + 0x1c], 1
add dword [esp + 0x28], 0x18
jmp 0x66675368
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
cmp eax, ebx
jg 0x666753d9
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x10], esi
mov eax, dword [esp + 0x78]
mov dword [eax], 0
jmp 0x6667549d