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

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
cmp esi, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0x78]
jg 0x41d212
cmp esi, dword [esp + 0x74]
jg 0x41d212
mov edx, dword [eax]
mov eax, dword [edi]
xor ebx, ebx
sub eax, edx
cmp eax, 3
jle 0x41d20a
nop
mov ecx, dword [edx + ebx]
mov dword [ebp + ebx], ecx
add ebx, 4
cmp ebx, eax
jne 0x41d170
mov ecx, dword [esp + 0x24]
lea eax, [ebp + ebx]
mov esi, dword [esp + 0x20]
mov ebx, dword [edi]
cmp ebp, eax
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov esi, dword [esi]
mov dword [esp + 0x2c], edx
je 0x41d20a
cmp edx, ebx
mov edi, dword [sym.imp.libmemuqt.dll_GetVmIndex_QString_const_]
jne 0x41d1cb
jmp 0x41d442
mov eax, dword [ebx]
add esi, 4
add ebx, 4
mov dword [esi - 4], eax
cmp ebp, dword [esp + 0x28]
je 0x41d20a
cmp dword [esp + 0x2c], ebx
je 0x41d442
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ecx
add eax, 0xc
mov dword [esp], eax
call edi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 8]
add eax, 0xc
mov dword [esp], eax
call edi
cmp dword [esp + 0x20], eax
jl 0x41d1b0
mov eax, dword [ebp]
add esi, 4
add ebp, 4
mov dword [esi - 4], eax
cmp ebp, dword [esp + 0x28]
jne 0x41d1c1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x74], eax
jg 0x41d2e5
mov eax, dword [esp + 0x24]
mov ebx, dword [edi]
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x28], eax
sub ecx, ebx
cmp ecx, 3
jle 0x41d20a
xor edx, edx
mov esi, esi
lea edi, [edi]
mov eax, dword [ebx + edx]
mov dword [ebp + edx], eax
add edx, 4
cmp edx, ecx
jne 0x41d240
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
lea ecx, [ebp + edx]
mov edi, dword [edi]
lea esi, [ebp + edx - 4]
mov ebx, dword [eax]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
cmp edi, eax
mov dword [esp + 0x28], eax
je 0x41d503
cmp ebp, ecx
je 0x41d20a
lea edx, [edi - 4]
mov dword [esp + 0x78], ebp
sub ebx, 4
mov edi, dword [sym.imp.libmemuqt.dll_GetVmIndex_QString_const_]
mov eax, dword [esp + 0x2c]
mov ebp, edx
jmp 0x41d2a7
cmp dword [esp + 0x28], ebp
mov eax, dword [ebp]
mov dword [ebx], eax
je 0x41d4d0
sub ebp, 4
mov eax, dword [esi]
sub ebx, 4
mov eax, dword [eax + 8]
mov ecx, dword [ebp]
add eax, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call edi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 8]
add eax, 0xc
mov dword [esp], eax
call edi
cmp dword [esp + 0x20], eax
jl 0x41d290
cmp dword [esp + 0x78], esi
mov eax, dword [esi]
mov dword [ebx], eax
je 0x41d20a
sub esi, 4
jmp 0x41d2a2
cmp esi, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [edi]
jg 0x41d470
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x48]
lea ebx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], edx
shr ecx, 0x1f
add ecx, dword [esp + 0x74]
mov edx, ebx
sar ecx, 1
mov dword [esp + 0x3c], ecx
lea ecx, [eax + ecx*4]
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], ecx
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
call fcn.0040b380
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
sub eax, dword [edx]
sar eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x7c]
sub esi, dword [esp + 0x30]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x14], edi
mov dword [esp], eax
call fcn.00501140
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x80]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, ebx
call fcn.0041d130
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp + 8], ebp
mov dword [esp], esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x80]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
sub eax, edi
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0041d130
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x28]
sub ebx, ebp
cmp ebx, 3
jle 0x41d20a
xor eax, eax
mov edx, dword [ebp + eax]
mov dword [esi + eax], edx
add eax, 4
cmp eax, ebx
jne 0x41d453
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
lea ebx, [esp + 0x44]
mov dword [esp + 0x44], eax
shr ecx, 0x1f
lea eax, [esp + 0x4c]
add ecx, esi
sar ecx, 1
mov dword [esp + 0x2c], eax
lea edx, [edx + ecx*4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
mov ecx, edx
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
mov dword [esp], ecx
mov dword [esp + 0x48], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x28]
mov edx, ebx
call fcn.0040b2f0
mov eax, dword [esp + 0x4c]
mov edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [edi]
sub edx, eax
sar edx, 2
mov dword [esp + 0x3c], edx
jmp 0x41d350
mov ebp, dword [esp + 0x78]
lea ecx, [esi + 4]
sub ecx, ebp
sar ecx, 2
test ecx, ecx
jle 0x41d20a
neg ecx
xor eax, eax
nop
lea esi, [esi]
mov edx, dword [esi + eax*4]
mov dword [ebx + eax*4 - 4], edx
sub eax, 1
cmp eax, ecx
jne 0x41d4f0
jmp 0x41d20a
sar edx, 2
test edx, edx
jle 0x41d20a
neg edx
xor eax, eax
mov esi, dword [ecx + eax*4 - 4]
mov dword [ebx + eax*4 - 4], esi
sub eax, 1
cmp eax, edx
jne 0x41d512
jmp 0x41d20a