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

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, edx
sub esp, 0x5c
mov ebx, dword [esp + 0x7c]
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov edi, dword [esp + 0x78]
jg 0x41d802
mov ebx, dword [esp + 0x74]
cmp dword [esp + 0x70], ebx
jg 0x41d802
mov ecx, dword [eax]
mov edx, dword [edx]
xor eax, eax
sub edx, ecx
cmp edx, 3
jle 0x41d7fa
mov ebx, dword [ecx + eax]
mov dword [edi + eax], ebx
add eax, 4
cmp eax, edx
jne 0x41d682
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add eax, edi
cmp edi, eax
mov dword [esp + 0x30], eax
mov esi, dword [esi]
mov ecx, dword [edx]
mov ebx, dword [ebx]
mov dword [esp + 0x34], ecx
je 0x41d7fa
mov eax, dword [sym.imp.libmemuqt.dll_GetVmIndex_QString_const_]
cmp ecx, esi
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.Qt5Core.dll_operator__QString_const__QString_const_]
mov dword [esp + 0x38], eax
je 0x41db34
mov dword [esp + 0x28], ebx
jmp 0x41d716
mov ebx, dword [esp + 0x80]
mov edx, dword [ebx + 0x3ac]
test edx, edx
jne 0x41db20
cmp ecx, eax
setl al
test al, al
je 0x41d7e0
mov eax, dword [esi]
mov ebx, dword [esp + 0x28]
add esi, 4
add dword [esp + 0x28], 4
cmp edi, dword [esp + 0x30]
mov dword [ebx], eax
je 0x41d7fa
cmp dword [esp + 0x34], esi
je 0x41db30
mov ebp, dword [esi]
mov ebx, dword [edi]
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [esp], eax
mov eax, dword [esp + 0x24]
call eax
mov edx, dword [ebx + 8]
mov dword [esp + 0x2c], eax
lea eax, [edx + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xffffffff
je 0x41d7e0
cmp eax, 0xffffffff
je 0x41d6f2
mov edx, dword [esp + 0x80]
mov edx, dword [edx + 0x3a8]
test edx, edx
je 0x41d6d0
cmp edx, 1
mov eax, dword [esp + 0x80]
je 0x41db60
cmp edx, 2
je 0x41db90
cmp edx, 4
je 0x41dbe3
mov ecx, dword [eax + 0x3c0]
add ebp, 0x40
mov dword [esp + 4], 0
mov dword [esp], ebp
test ecx, ecx
mov ecx, 0x54e190
je 0x41dbb4
call fcn.00500290
add ebx, 0x40
sub esp, 8
mov ebp, eax
mov dword [esp + 4], 0
mov dword [esp], ebx
mov ecx, 0x54e190
call fcn.00500290
sub esp, 8
cmp ebp, eax
setg al
test al, al
jne 0x41d6f2
nop
lea esi, [esi]
mov eax, dword [edi]
mov ebx, dword [esp + 0x28]
add edi, 4
add dword [esp + 0x28], 4
cmp edi, dword [esp + 0x30]
mov dword [ebx], eax
jne 0x41d70c
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x74], eax
jg 0x41d9b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x2c], eax
sub edx, ecx
cmp edx, 3
jle 0x41d7fa
xor eax, eax
mov esi, esi
lea edi, [edi]
mov ebx, dword [ecx + eax]
mov dword [edi + eax], ebx
add eax, 4
cmp eax, edx
jne 0x41d830
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x28]
lea ecx, [edi + eax]
mov esi, dword [esi]
lea ebp, [edi + eax - 4]
mov edx, dword [ebx]
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx]
cmp esi, ebx
mov dword [esp + 0x30], ebx
je 0x41de34
cmp edi, ecx
je 0x41d7fa
lea eax, [esi - 4]
lea esi, [edx - 4]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x78], edi
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.libmemuqt.dll_GetVmIndex_QString_const_]
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.Qt5Core.dll_operator__QString_const__QString_const_]
mov dword [esp + 0x38], esi
mov esi, eax
jmp 0x41d8d1
mov edi, dword [esp + 0x80]
mov edx, dword [edi + 0x3ac]
test edx, edx
jne 0x41dce0
cmp dword [esp + 0x28], eax
setl al
test al, al
je 0x41d990
cmp dword [esp + 0x30], esi
mov eax, dword [esi]
mov edi, dword [esp + 0x2c]
mov dword [edi], eax
je 0x41de00
sub esi, 4
sub dword [esp + 0x2c], 4
mov ebx, dword [ebp]
mov eax, dword [ebx + 8]
mov edi, dword [esi]
add eax, 0xc
mov dword [esp], eax
mov eax, dword [esp + 0x24]
call eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x24]
lea eax, [ecx + 0xc]
mov dword [esp], eax
call edx
cmp dword [esp + 0x28], 0xffffffff
je 0x41d990
cmp eax, 0xffffffff
je 0x41d8b4
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx + 0x3a8]
test ecx, ecx
je 0x41d890
cmp ecx, 1
mov eax, dword [esp + 0x80]
je 0x41dcf0
cmp ecx, 2
je 0x41dd20
cmp ecx, 4
je 0x41dd73
mov eax, dword [eax + 0x3c0]
lea edx, [ebx + 0x40]
mov dword [esp + 4], 0
mov ecx, 0x54e190
mov dword [esp], edx
test eax, eax
je 0x41dd44
call fcn.00500290
add edi, 0x40
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], edi
mov ecx, 0x54e190
call fcn.00500290
sub esp, 8
cmp ebx, eax
setg al
test al, al
jne 0x41d8b4
nop
cmp dword [esp + 0x78], ebp
mov eax, dword [ebp]
mov edi, dword [esp + 0x2c]
mov dword [edi], eax
je 0x41d7fa
sub ebp, 4
jmp 0x41d8c9
mov ebx, dword [esp + 0x74]
cmp dword [esp + 0x70], ebx
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov eax, dword [esi]
jg 0x41dc50
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
lea ebp, [esp + 0x4c]
mov dword [esp + 0x44], edx
shr ecx, 0x1f
add ecx, dword [esp + 0x74]
sar ecx, 1
lea ebx, [eax + ecx*4]
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
mov ecx, ebx
mov dword [esp + 0x38], ebx
lea ebx, [esp + 0x44]
mov dword [esp], ecx
mov ecx, edx
mov dword [esp + 4], eax
mov edx, ebx
mov eax, ebp
call fcn.00416ab0
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
sub eax, dword [edx]
sar eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x70]
sub esi, dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.00501140
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov ecx, ebp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, ebx
call fcn.0041d640
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, ebp
mov eax, dword [eax]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0041d640
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ecx, eax
setg al
jmp 0x41d6ea
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
sub edx, edi
cmp edx, 3
jle 0x41d7fa
xor eax, eax
mov ecx, dword [edi + eax]
mov dword [ebx + eax], ecx
add eax, 4
cmp eax, edx
jne 0x41db45
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax + 0x3b0]
test eax, eax
jne 0x41dc20
mov eax, dword [ebx + 8]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
jmp 0x41d6ea
mov eax, dword [eax + 0x3b4]
mov edx, dword [ebp + 8]
test eax, eax
mov eax, dword [ebx + 8]
movzx eax, word [eax + 0x38]
jne 0x41dc40
cmp word [edx + 0x38], ax
setl al
jmp 0x41d6ea
call fcn.00500290
add ebx, 0x40
sub esp, 8
mov ebp, eax
mov dword [esp + 4], 0
mov dword [esp], ebx
mov ecx, 0x54e190
call fcn.00500290
sub esp, 8
cmp ebp, eax
setl al
jmp 0x41d6ea
mov eax, dword [eax + 0x3b8]
mov edx, dword [ebx + 8]
test eax, eax
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 0x44]
mov ecx, dword [eax + 0x40]
jne 0x41dcc0
cmp dword [eax + 0x44], ebx
jb 0x41d6f2
ja 0x41d7e0
cmp ecx, dword [edx + 0x40]
jb 0x41d6f2
jmp 0x41d7e0
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
add eax, 8
mov dword [esp], eax
call dword [sym.imp.Qt5Core.dll_operator__QString_const__QString_const_]
jmp 0x41d6ea
cmp word [edx + 0x38], ax
setg al
jmp 0x41d6ea
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
lea ebp, [esp + 0x4c]
mov dword [esp + 0x30], eax
shr ecx, 0x1f
add ecx, dword [esp + 0x70]
sar ecx, 1
lea ebx, [edx + ecx*4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ebx
mov ecx, ebx
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx]
lea ebx, [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 0x48], edx
mov edx, eax
mov eax, dword [esp + 0x80]
mov ecx, edx
mov edx, ebx
mov dword [esp + 4], eax
mov eax, ebp
call fcn.00416ce0
mov eax, dword [esp + 0x4c]
mov edx, eax
mov dword [esp + 0x38], eax
mov eax, dword [esi]
sub edx, eax
sar edx, 2
mov dword [esp + 0x2c], edx
jmp 0x41da2a
cmp dword [eax + 0x44], ebx
ja 0x41d6f2
jb 0x41d7e0
cmp ecx, dword [edx + 0x40]
ja 0x41d6f2
jmp 0x41d7e0
cmp dword [esp + 0x28], eax
setg al
jmp 0x41d8ac
mov eax, dword [eax + 0x3b0]
test eax, eax
jne 0x41ddb0
mov eax, dword [edi + 8]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
add eax, 8
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
jmp 0x41d8ac
mov ecx, dword [eax + 0x3b4]
mov eax, dword [edi + 8]
mov edx, dword [ebx + 8]
test ecx, ecx
movzx eax, word [eax + 0x38]
jne 0x41ddd0
cmp word [edx + 0x38], ax
setl al
jmp 0x41d8ac
call fcn.00500290
add edi, 0x40
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], edi
mov ecx, 0x54e190
call fcn.00500290
sub esp, 8
cmp ebx, eax
setl al
jmp 0x41d8ac
mov edx, dword [eax + 0x3b8]
mov eax, dword [ebx + 8]
test edx, edx
mov edx, dword [edi + 8]
mov ecx, dword [eax + 0x40]
mov edi, dword [edx + 0x44]
jne 0x41dde0
cmp dword [eax + 0x44], edi
jb 0x41d8b4
ja 0x41d990
cmp ecx, dword [edx + 0x40]
jb 0x41d8b4
jmp 0x41d990
mov eax, dword [ebx + 8]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
add eax, 8
mov dword [esp], eax
call dword [sym.imp.Qt5Core.dll_operator__QString_const__QString_const_]
jmp 0x41d8ac
cmp word [edx + 0x38], ax
setg al
jmp 0x41d8ac
cmp dword [eax + 0x44], edi
ja 0x41d8b4
jb 0x41d990
cmp ecx, dword [edx + 0x40]
ja 0x41d8b4
jmp 0x41d990
mov edi, dword [esp + 0x78]
lea ecx, [ebp + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
jle 0x41d7fa
mov ebx, dword [esp + 0x2c]
neg ecx
xor eax, eax
lea esi, [esi]
mov edx, dword [ebp + eax*4]
mov dword [ebx + eax*4 - 4], edx
sub eax, 1
cmp eax, ecx
jne 0x41de20
jmp 0x41d7fa
sar eax, 2
test eax, eax
jle 0x41d7fa
neg eax
xor ebx, ebx
mov esi, dword [ecx + ebx*4 - 4]
mov dword [edx + ebx*4 - 4], esi
sub ebx, 1
cmp ebx, eax
jne 0x41de43
jmp 0x41d7fa