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

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x24]
cmp edi, 8
jne 0x41d40a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x4ac530]
add esp, 0xc
pop edi
add esp, 0xc
ret
cmp edi, 4
jne 0x41d42c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x4ac534]
add esp, 0xc
pop edi
add esp, 0xc
ret
cmp edi, 2
jne 0x41d44d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0041c150
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.0041c0d0
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x18], eax
mov eax, esi
mov edx, ebx
call fcn.0041c0d0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
lea eax, [ecx + eax + 4]
cmp eax, 8
ja case.0x41d49d.3
jmp dword [eax*4 + 0x41d65c]
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push ebx
call dword [0x4ac538]
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 [0x4ac538]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea ecx, [ebp + edi*4]
push ecx
push ebp
call fcn.0041d3e0
push esi
push ebx
jmp 0x41d591
mov edx, dword [esp + 0x14]
push esi
push ebp
push edx
push ebx
call dword [0x4ac538]
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 [0x4ac538]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea edx, [ebp + edi*4]
push edx
push ebp
call fcn.0041d3e0
add esp, 0x34
jmp 0x41d5be
mov eax, dword [esp + 0x14]
push esi
push eax
push ebp
push ebx
call dword [0x4ac538]
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 [0x4ac538]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea eax, [ebp + edi*4]
push eax
push ebp
call fcn.0041d3e0
add esp, 0x34
jmp 0x41d5be
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push ebx
call dword [0x4ac538]
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 [0x4ac538]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea ecx, [ebp + edi*4]
push ecx
push ebp
call fcn.0041d3e0
push esi
lea ecx, [ebx + esi*4]
push ecx
lea eax, [ebp + esi*4]
push eax
push eax
call dword [0x4ac538]
add esp, 0x44
mov dword [esp + 0x30], 0xffffffff
jmp 0x41d5c6
test edi, edi
mov ebp, dword [esp + 0x24]
jbe 0x41d5be
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.0041d3e0
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.0041d3e0
push edi
push ebx
push ebp
push ebp
call dword [0x4ac53c]
add dword [esp + 0x68], eax
push edi
lea eax, [ebx + edi*4]
push eax
push ebp
push ebp
call dword [0x4ac53c]
add dword [esp + 0x78], eax
add esp, 0x48
push edi
lea eax, [ebx + esi*4]
push ebp
push eax
push eax
call dword [0x4ac53c]
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 0x41d654
mov eax, 1
cmp esi, eax
jbe 0x41d654
add dword [ebx + eax*4], 1
jne 0x41d654
add eax, 1
cmp eax, esi
jb 0x41d647
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret