Function at 0x410620
Capabilities:
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [edi]
mov ebx, dword [0x4ab5d8]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x410b00
mov esi, dword [sym.imp.dbghelp.dll_SymSetExtendedOption]
mov dword [esp + 4], 1
mov dword [esp], 0x3e8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call esi
mov ebx, eax
lea eax, [ebp - 0x1c]
push edx
push edx
mov dword [esp + 8], eax
mov eax, dword [0x4ab5d8]
mov dword [esp + 4], 0x40fff0
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.dbghelp.dll_SymEnumerateModules64]
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], 0x3e8
call esi
mov edx, dword [ebp - 0x14]
test edx, edx
push ecx
push ecx
je 0x410981
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov ebx, ecx
nop
cmp dword [ebx + 0xcc0], 3
je 0x410aa8
inc eax
add ebx, 0xd10
cmp edx, eax
jne 0x4106c8
mov dword [ebp - 0x50], 0
mov dword [esp + 0xc], 0x40fa50
mov dword [esp + 8], 0xd10
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_qsort]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x410b18
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41074e
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + edx*4]
lea eax, [ecx + 0xcb4]
shl edx, 4
add edx, ebx
xor ebx, ebx
shl edx, 4
lea edx, [ecx + edx + 0xcb4]
mov ecx, dword [ebp - 0x50]
lea esi, [esi]
cmp dword [eax], ecx
jne 0x410745
inc ebx
add eax, 0xd10
cmp edx, eax
jne 0x410740
mov eax, dword [0x4ab5d8]
test eax, eax
je 0x410b50
mov eax, dword [eax + 0x2c]
cmp dword [eax + 4], 8
sete al
and eax, 0xff
dec eax
and eax, 0xfffffff0
add eax, 0x28
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.Debug_info
mov dword [esp + 0xc], str.Address
mov dword [esp + 8], eax
mov dword [esp + 4], str.Module
mov dword [esp], str.__8s__s__16sName___d_modules
call fcn.004218d0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x410ad8
mov dword [esp], 0x43cfd6
call fcn.004218d0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
or eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
setne byte [ebp - 0x69]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x410b5a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x28], 0
mov esi, ecx
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
add edi, eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41082a
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
cmp dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x48]
sbb ecx, edx
jb 0x41090c
mov ecx, dword [edi + 0x10]
xor ebx, ebx
add ecx, eax
mov eax, dword [ebp - 0x48]
adc ebx, edx
cmp dword [ebp - 0x44], ecx
sbb eax, ebx
jae 0x41090c
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x410840
mov eax, dword [ebp - 0x50]
cmp dword [edi + 0xcb4], eax
jne 0x41090c
test byte [edi + 0xcc4], 4
jne 0x410850
mov dword [ebp - 0x60], 1
mov eax, dword [edi + 0xcc0]
lea edx, [eax - 1]
cmp edx, 1
jbe 0x4109b8
test esi, esi
je 0x410993
cmp eax, 3
mov eax, dword [ebp - 0x20]
sete bl
lea ecx, [eax + 8]
xor edx, edx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x40], edi
mov eax, esi
jmp 0x410897
inc edx
add ecx, 0xd10
cmp edx, eax
je 0x410990
mov edi, dword [ecx + 0xcb8]
lea esi, [edi - 1]
cmp esi, 1
ja 0x410888
cmp byte [ebp - 0x2c], 0
je 0x410888
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x34], esi
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
cmp esi, dword [ebp - 0x38]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], esi
sbb edi, dword [ebp - 0x34]
jb 0x410888
mov esi, dword [ecx + 8]
xor edi, edi
mov dword [ebp - 0x68], esi
mov esi, dword [ebp - 0x38]
add esi, dword [ebp - 0x68]
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
adc edi, dword [ebp - 0x64]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x34], edi
xor edi, edi
add esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x34]
adc edi, dword [ebp - 0x54]
cmp dword [ebp - 0x38], esi
sbb ebx, edi
jb 0x410888
mov edi, dword [ebp - 0x40]
mov esi, eax
cmp edx, eax
jae 0x410993
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
inc ebx
add edi, 0xd10
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x28]
cmp eax, esi
jb 0x4107f0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x410976
cmp byte [ebp - 0x69], 0
je 0x410976
mov eax, dword [0x4ab5d8]
test eax, eax
je 0x410aef
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 4]
add eax, eax
mov ebx, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov ebx, dword [ebp - 0x48]
mov dword [esp + 0xc], ebx
mov dword [esp], str.0x_0I64x_is_not_a_valid_module_address_n
call fcn.004218d0
mov edx, dword [ebp - 0x60]
test edx, edx
jne 0x410ac0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov edi, dword [ebp - 0x40]
mov eax, edi
mov ecx, dword [ebp - 0x30]
xor edx, edx
call fcn.00410220
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
jmp 0x41090c
xor edx, edx
mov eax, edi
mov ecx, dword [ebp - 0x30]
call fcn.00410220
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
test esi, esi
je 0x4109a5
xor edi, edi
mov dword [ebp - 0x20], eax
mov eax, esi
xor ebx, ebx
mov esi, edi
mov dword [ebp - 0x2c], eax
jmp 0x4109f0
inc esi
add ebx, 0xd10
cmp dword [ebp - 0x2c], esi
jbe 0x410a99
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + eax]
mov eax, dword [ecx + 0xcc0]
dec eax
cmp eax, 1
ja 0x4109e0
lea edi, [edx + ebx]
cmp dword [edx + ebx + 0xcc0], 3
mov dword [ebp - 0x38], edi
jne 0x4109e0
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
sbb edx, dword [ebp - 0x3c]
jb 0x4109e0
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
add edx, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x40], edx
adc ecx, dword [ebp - 0x3c]
xor edx, edx
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x3c], ecx
adc edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x40]
cmp edx, eax
mov edx, ecx
sbb edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
jb 0x4109e0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov edx, 1
inc esi
call fcn.00410220
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
add ebx, 0xd10
cmp dword [ebp - 0x2c], esi
ja 0x4109f0
mov esi, dword [ebp - 0x2c]
jmp 0x4109a8
mov ebx, dword [ebx + 0xcb4]
cmp edx, eax
mov dword [ebp - 0x50], ebx
jne 0x4106e7
jmp 0x4106e0
mov dword [esp], str._denotes_modules_for_which_image_file_couldnt_be_found_n
call fcn.004218d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
sub eax, ebx
mov dword [esp], str.___u_for_wow64_not_listed
mov dword [esp + 4], eax
call fcn.004218d0
jmp 0x4107a8
mov eax, 8
jmp 0x410958
mov dword [edi], str.Cannot_get_info_on_module_while_no_process_is_loaded_n
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp fcn.004218d0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], str.Debug_info
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Machine
mov dword [esp + 8], str.Address
mov dword [esp + 4], str.Module
mov dword [esp], str.__8s__40s__16s__16sName___d_modules__n
call fcn.004218d0
jmp 0x4107b4
mov eax, 0x18
jmp 0x410771
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], 0
test eax, eax
jne 0x410943
jmp 0x410981