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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x4c0
mov esi, dword [ebp + 8]
test esi, esi
mov edi, 0xffffffe7
je 0x41c57c
cmp dword [ebp + 0xc], 0
je 0x41c57c
mov eax, dword [esi + 0x14]
shl eax, 3
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esi + 4], eax
mov edi, 0xffffffea
test eax, eax
je 0x41c57c
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41c56f
mov ebx, ecx
shl ebx, 0xa
mov eax, ebx
xor edx, edx
div ecx
cmp eax, 0x400
jne 0x41c56f
push 0xc
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x41c56f
mov dword [esp + 0x34], eax
mov eax, ebx
or eax, 0x3f
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x41c55d
mov ecx, eax
add ecx, 0x3f
and ecx, 0xffffffc0
mov edx, dword [esp + 0x34]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], ebx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x34], eax
xor edi, edi
lea eax, [esp + 0x80]
push 0x40
push edi
push edi
push eax
call fcn.00417ae2
add esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x30]
lea ebx, [esp + 0x30]
mov dword [ebx], eax
mov eax, 4
push edi
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebx], eax
push edi
mov eax, 4
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x2c]
mov dword [ebx], eax
push edi
mov eax, 4
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebx], eax
push edi
mov eax, 4
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00417b9e
add esp, 0x10
mov dword [ebx], 0x13
push edi
mov eax, 4
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00417b9e
add esp, 0x10
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
push edi
mov eax, 4
push eax
push ebx
lea eax, [esp + 0x8c]
push eax
call fcn.00417b9e
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
push edi
lea edi, [esp + 0x84]
mov eax, 4
push eax
push ebx
mov ebx, ecx
push edi
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebx + 8]
test eax, eax
je 0x41c3ad
push 0
push dword [ebx + 0xc]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
test byte [ebx + 0x38], 1
je 0x41c3ad
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.00428f3c
add esp, 8
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x30], eax
push 0
push 4
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x41c3dc
push 0
push dword [ebx + 0x14]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x30], eax
push 0
push 4
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41c426
push 0
push dword [ebx + 0x1c]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
test byte [ebx + 0x38], 2
je 0x41c426
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call fcn.00428f3c
add esp, 8
mov dword [ebx + 0x1c], 0
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x30], eax
push 0
push 4
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x41c455
push 0
push dword [ebx + 0x24]
push eax
push edi
call fcn.00417b9e
add esp, 0x10
lea eax, [esp + 0x38]
push 0x40
push eax
push edi
call fcn.00417ba3
add esp, 0xc
lea eax, [esp + 0x78]
push 8
push eax
call fcn.00428f3c
add esp, 8
cmp dword [esi + 0x1c], 0
je 0x41c535
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
push 0x48
lea eax, [esp + 0x3c]
push eax
push 0x400
lea eax, [esp + 0x8c]
push eax
call fcn.0041fbe8
add esp, 0x10
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
imul eax, edi
add eax, dword [ecx + 4]
mov ecx, 0xfffffc00
movsd xmm0, qword [esp + ecx + 0x480]
movsd qword [eax + ecx + 0x400], xmm0
add ecx, 8
jne 0x41c4ba
mov dword [esp + 0x78], 1
push 0x48
lea eax, [esp + 0x3c]
push eax
mov esi, 0x400
push esi
lea eax, [esp + 0x8c]
push eax
call fcn.0041fbe8
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 0x18]
imul eax, edi
add eax, dword [ecx + 4]
add eax, esi
mov ecx, 0xfffffc00
movsd xmm0, qword [esp + ecx + 0x480]
movsd qword [eax + ecx + 0x400], xmm0
add ecx, 8
jne 0x41c50b
inc ebx
add edi, 0x400
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 0x1c]
jb 0x41c482
push 0x400
lea eax, [esp + 0x84]
push eax
call fcn.00428f3c
add esp, 8
push 0x48
lea eax, [esp + 0x3c]
push eax
call fcn.00428f3c
add esp, 8
xor edi, edi
jmp 0x41c57c
push dword [esp + 0x34]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x38]
mov ecx, esi
call fcn.0041bfd8
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret