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

Disassembly:
sub esp, 0x4c
mov eax, dword [edx + 4]
push ebx
push ebp
mov ebp, dword [edx + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
push esi
push edi
mov edi, dword [edx + 8]
test ebp, ebp
je 0x41b5c6
mov ebx, dword [ebp + 0x378]
mov dword [ebp + 0x378], 0
test ebx, ebx
je 0x41b5bf
cmp dword [ebx + 0x1c], 0
jne 0x41b5c6
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x18]
test ecx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
jne 0x41b5c6
mov eax, dword [eax + 0x14]
jmp 0x41b5c2
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
test edi, edi
jne 0x41b67c
lea esi, [edi + 1]
lea edi, [ecx + 0x3074]
push esi
mov ecx, edi
call fcn.00403f50
test eax, eax
je 0x41b5f0
inc esi
mov ecx, edi
push esi
call fcn.00403f50
test eax, eax
jne 0x41b5e3
mov eax, dword [0x4f0690]
test eax, eax
je 0x41b5ff
inc dword [eax + 0x370]
push 0xa0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
je 0x41b61d
push esi
mov ecx, eax
call fcn.0041bd60
mov edi, eax
jmp 0x41b61f
xor edi, edi
mov ecx, dword [esp + 0x14]
push edi
push dword [edi]
lea ecx, [ecx + 0x3074]
call fcn.00404020
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], ecx
cmp dword [esi + 0x378], 0
jne 0x41b678
push 1
mov edx, esi
mov ecx, edi
call fcn.0041bf60
mov eax, dword [edi + 0x30]
add esp, 4
mov eax, dword [eax + 8]
and dword [eax + 4], 0xffbfffff
or byte [esi + 0x359], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
cmp eax, 0xffffffff
je 0x41b6d3
test eax, eax
je 0x41b694
cmp eax, 1
je 0x41b694
mov ecx, 1
jmp 0x41b69a
xor ecx, ecx
test eax, eax
je 0x41b6a3
cmp eax, 2
je 0x41b6a3
xor esi, esi
jmp 0x41b6a8
mov esi, 1
movss xmm0, dword [edx + 0x14]
mov edx, edi
push ebx
push ecx
movss dword [esp], xmm0
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004201f0
mov eax, dword [edi + 0x6c]
add esp, 0x10
xor esi, 1
mov ecx, dword [edi + esi*4 + 0x1c]
mov edi, ecx
mov dword [ecx + 0x6c], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
and ecx, 0xffffdfff
or eax, ecx
mov dword [edi + 8], ecx
or eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
cmp edi, ebx
je 0x41b8f1
mov eax, dword [edi + 0x24]
test eax, eax
jle 0x41b7ba
cmp dword [edi + 0x30], 0
jne 0x41b7ba
mov ecx, edi
call fcn.0041ebc0
mov eax, dword [edi + 0x24]
xor esi, esi
test eax, eax
jle 0x41b7ba
or ebp, 0xffffffff
nop
mov eax, dword [edi + 0x2c]
xorps xmm0, xmm0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x40], xmm0
mov edx, dword [eax + esi*4]
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [edx + 4]
cmp byte [edx + 0xc8], 0
mov dword [esp + 0x2c], eax
mov eax, 0x100000
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x4c], 0xffffffff
mov word [esp + 0x52], bp
mov word [esp + 0x50], bp
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
jne 0x41b79c
mov eax, dword [0x4f0690]
mov eax, dword [eax + 0x1be8]
dec eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], edx
push eax
call fcn.00445910
mov eax, dword [edi + 0x24]
inc esi
cmp esi, eax
jl 0x41b720
mov ebp, dword [esp + 0x24]
test ebx, ebx
je 0x41b8c7
cmp dword [ebx + 0x1c], 0
je 0x41b8a1
test eax, eax
jle 0x41b7ee
mov esi, dword [ebx + 0x78]
mov ecx, edi
mov edx, esi
call fcn.0041c570
mov edx, edi
mov ecx, esi
call fcn.0041c570
mov edx, dword [esi]
mov ecx, dword [edi]
call fcn.004222e0
mov eax, dword [edi + 0x10]
shr eax, 0xb
test al, 1
je 0x41b852
mov ecx, dword [esp + 0x14]
push dword [ebx + 0x8c]
lea ecx, [ecx + 0x3074]
call fcn.00403f50
mov esi, eax
mov edx, esi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x41b821
mov edx, ecx
mov ecx, dword [edx + 0x18]
test ecx, ecx
jne 0x41b818
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
or ecx, 0x800
or eax, dword [esi + 4]
or eax, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, 0xfffff7ff
or eax, dword [edi + 4]
or eax, ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], eax
mov dword [edx + 0x74], esi
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x1c], ecx
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x20], eax
test ecx, ecx
je 0x41b865
mov dword [ecx + 0x18], edi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x41b86f
mov dword [eax + 0x18], edi
mov eax, dword [ebx + 0x4c]
mov edx, ebx
mov dword [edi + 0x4c], eax
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x48], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x44], eax
push 1
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
call fcn.0041ae50
add esp, 4
jmp 0x41b8f8
mov esi, dword [ebx]
mov edx, ebx
mov ecx, edi
call fcn.0041c570
mov edx, dword [edi]
mov ecx, esi
call fcn.004222e0
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 1
call fcn.0041ae50
add esp, 4
jmp 0x41b8f8
test ebp, ebp
je 0x41b8f8
mov esi, dword [ebp + 0x37c]
mov edx, ebp
push 1
mov ecx, edi
mov dword [edi + 0x70], ebp
call fcn.0041bf60
add esp, 4
test esi, esi
je 0x41b8f8
mov edx, dword [edi]
mov ecx, esi
call fcn.004222e0
jmp 0x41b8f8
or byte [edi + 0x9d], 1
mov eax, dword [edi + 0x30]
test eax, eax
je 0x41b906
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [0x4f0690]
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x30a0]
jb 0x41b921
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x30a0], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret