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

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x24]
cmp edi, 8
jne 0x61cfaa
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x97798c]
add esp, 0xc
pop edi
add esp, 0xc
ret
cmp edi, 4
jne 0x61cfcc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x97797c]
add esp, 0xc
pop edi
add esp, 0xc
ret
cmp edi, 2
jne 0x61cfed
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0061bc10
add esp, 0xc
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, edi
shr esi, 1
lea eax, [ebx + esi*4]
lea ecx, [ebp + esi*4]
mov dword [esp + 0x10], eax
mov eax, esi
mov edx, ebp
mov dword [esp + 0x14], ecx
call fcn.0061b990
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x18], eax
mov eax, esi
mov edx, ebx
call fcn.0061b990
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
lea eax, [ecx + eax + 4]
cmp eax, 8
ja case.0x61d03d.3
jmp dword [eax*4 + 0x61d208]
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push ebx
call dword [0x977984]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
push esi
push edx
push eax
lea ebp, [ebx + esi*4]
push ebp
call dword [0x977984]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea ecx, [ebp + edi*4]
push ecx
push ebp
call fcn.0061cf80
push esi
push ebx
jmp 0x61d131
mov edx, dword [esp + 0x14]
push esi
push ebp
push edx
push ebx
call dword [0x977984]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
push esi
push eax
push ecx
lea ebp, [ebx + esi*4]
push ebp
call dword [0x977984]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea edx, [ebp + edi*4]
push edx
push ebp
call fcn.0061cf80
add esp, 0x34
jmp 0x61d15e
mov eax, dword [esp + 0x14]
push esi
push eax
push ebp
push ebx
call dword [0x977984]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
push esi
push ecx
push edx
lea ebp, [ebx + esi*4]
push ebp
call dword [0x977984]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea eax, [ebp + edi*4]
push eax
push ebp
call fcn.0061cf80
add esp, 0x34
jmp 0x61d15e
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push ebx
call dword [0x977984]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
push esi
push edx
push eax
lea ebp, [ebx + esi*4]
push ebp
call dword [0x977984]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea ecx, [ebp + edi*4]
push ecx
push ebp
call fcn.0061cf80
push esi
lea ecx, [ebx + esi*4]
push ecx
lea eax, [ebp + esi*4]
push eax
push eax
call dword [0x977984]
add esp, 0x44
mov dword [esp + 0x30], 0xffffffff
jmp 0x61d166
test edi, edi
mov ebp, dword [esp + 0x24]
jbe 0x61d15e
mov ecx, edi
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push esi
push edx
push ecx
lea eax, [ebp + edi*4]
push eax
push ebx
call fcn.0061cf80
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push esi
push edx
push eax
lea eax, [ebp + edi*4]
lea ecx, [ebx + edi*4]
push eax
push ecx
call fcn.0061cf80
push edi
push ebx
push ebp
push ebp
call dword [0x977980]
mov ecx, dword [esp + 0x68]
add ecx, eax
push edi
lea eax, [ebx + edi*4]
push eax
push ebp
push ebp
mov dword [esp + 0x78], ecx
call dword [0x977980]
mov ecx, dword [esp + 0x78]
add esp, 0x48
push edi
add ecx, eax
lea eax, [ebx + esi*4]
push ebp
push eax
push eax
mov dword [esp + 0x40], ecx
call dword [0x977980]
mov ecx, dword [esp + 0x40]
lea edx, [esi + edi]
add ecx, eax
mov eax, dword [ebx + edx*4]
lea ebx, [ebx + edx*4]
add ecx, eax
add esp, 0x10
cmp ecx, eax
mov dword [ebx], ecx
jae 0x61d1fd
mov eax, 1
cmp esi, eax
jbe 0x61d1fd
inc dword [ebx + eax*4]
jne 0x61d1fd
inc eax
cmp eax, esi
jb 0x61d1f3
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret