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

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x24]
cmp edi, 8
jne 0x41f3aa
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x49c6b8]
add esp, 0xc
pop edi
add esp, 0xc
ret
cmp edi, 4
jne 0x41f3cc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [0x49c6bc]
add esp, 0xc
pop edi
add esp, 0xc
ret
cmp edi, 2
jne 0x41f3ed
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0041e0f0
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.0041e070
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov dword [esp + 0x18], eax
mov eax, esi
mov edx, ebx
call fcn.0041e070
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
lea eax, [ecx + eax + 4]
cmp eax, 8
ja case.0x41f43d.3
jmp dword [eax*4 + 0x41f5fc]
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push ebx
call dword [0x49c6c0]
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 [0x49c6c0]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea ecx, [ebp + edi*4]
push ecx
push ebp
call fcn.0041f380
push esi
push ebx
jmp 0x41f531
mov edx, dword [esp + 0x14]
push esi
push ebp
push edx
push ebx
call dword [0x49c6c0]
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 [0x49c6c0]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea edx, [ebp + edi*4]
push edx
push ebp
call fcn.0041f380
add esp, 0x34
jmp 0x41f55e
mov eax, dword [esp + 0x14]
push esi
push eax
push ebp
push ebx
call dword [0x49c6c0]
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 [0x49c6c0]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea eax, [ebp + edi*4]
push eax
push ebp
call fcn.0041f380
add esp, 0x34
jmp 0x41f55e
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push ebx
call dword [0x49c6c0]
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 [0x49c6c0]
push esi
push ebp
mov ebp, dword [esp + 0x4c]
push ebx
lea ecx, [ebp + edi*4]
push ecx
push ebp
call fcn.0041f380
push esi
lea ecx, [ebx + esi*4]
push ecx
lea eax, [ebp + esi*4]
push eax
push eax
call dword [0x49c6c0]
add esp, 0x44
mov dword [esp + 0x30], 0xffffffff
jmp 0x41f566
test edi, edi
mov ebp, dword [esp + 0x24]
jbe 0x41f55e
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.0041f380
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.0041f380
push edi
push ebx
push ebp
push ebp
call dword [0x49c6c4]
add dword [esp + 0x68], eax
push edi
lea eax, [ebx + edi*4]
push eax
push ebp
push ebp
call dword [0x49c6c4]
add dword [esp + 0x78], eax
add esp, 0x48
push edi
lea eax, [ebx + esi*4]
push ebp
push eax
push eax
call dword [0x49c6c4]
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 0x41f5f4
mov eax, 1
cmp esi, eax
jbe 0x41f5f4
add dword [ebx + eax*4], 1
jne 0x41f5f4
add eax, 1
cmp eax, esi
jb 0x41f5e7
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret