Function at 0x40cb10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
push esi
push edi
push 5
mov esi, ecx
mov edi, edx
push 0x4bb648
push esi
mov dword [esp + 0x2c], esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40cbf2
push 3
lea eax, [esi + 5]
push 0x4bb650
push eax
call ebx
add esp, 0xc
mov edx, 8
test eax, eax
mov ecx, 5
sete bl
test eax, eax
push str.Active
cmove ecx, edx
add esi, ecx
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40cb7c
mov al, 1
jmp 0x40cb91
push str.Exist
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40cba9
mov al, 3
push dword [ebp + 8]
lea ecx, [eax + ebx]
mov edx, edi
call fcn.0040bd30
add esp, 4
test eax, eax
jne 0x40cca3
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
jne 0x40cbd4
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ccbd4]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4bb65c
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40cd0f
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40cc2c
push 0x4b6ba9
push str.Parameter_3_must_be_blank_in_this_case.
mov ecx, 0x4cc848
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ccc0
mov cl, byte [eax + 0x17]
test cl, cl
jne 0x40cc43
mov edx, dword [eax + 0xc]
jmp 0x40cc45
mov edx, eax
test byte [edx + 0x15], 2
je 0x40ccc0
test cl, cl
jne 0x40cc52
mov eax, dword [eax + 0xc]
mov esi, dword [0x4cb07c]
mov edi, dword [eax]
test esi, esi
je 0x40cc71
nop
cmp byte [esi], 6
jne 0x40cc6a
cmp dword [esi + 0xc], edi
je 0x40cc9d
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40cc60
call fcn.0040c010
mov esi, eax
test esi, esi
jne 0x40cc83
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [esi], 6
mov dword [esi + 0xc], edi
mov dword [esi + 4], 0x4b6ba9
mov dword [esi + 8], 0x4b6ba9
mov dword [0x4cb088], esi
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0
jne 0x40ccc9
xor esi, esi
jmp 0x40cc9d
mov esi, dword [0x4cb07c]
test esi, esi
je 0x40ccf4
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
nop dword [eax]
push dword [esi + 4]
push edi
call ebx
add esp, 8
test eax, eax
je 0x40cc9d
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40cce0
push 0x4b6ba9
push str.Parameter_2_must_match_an_existing_If_expression.
mov ecx, 0x4cc848
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edx, str.UseErrorLevel
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.0049eb30
test eax, eax
setne byte [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [ebp + 0xc], eax
jne 0x40cda8
mov dl, 1
mov ecx, edi
call fcn.0040bb60
movzx eax, ax
mov dword [esp + 0x28], eax
test ax, ax
jne 0x40cda8
push 0
push dword [ebp + 0x10]
mov ecx, 0x4cc848
push edi
call fcn.00428970
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40cda8
mov cl, byte [edi]
test cl, cl
jne 0x40cd7b
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40cda8
cmp byte [eax + 0x17], cl
jne 0x40cd75
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
je 0x40cda8
cmp byte [esp + 0x1c], 0
jne 0x40cbb7
test cl, cl
mov edx, str.Parameters_of_hotkey_functions_must_be_optional.
mov eax, str.Target_label_does_not_exist.
mov ecx, 0x4cc848
push edi
cmove eax, edx
push eax
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x13]
mov ecx, esi
push eax
lea edx, [esp + 0x28]
call fcn.0040e540
mov edi, eax
add esp, 4
test edi, edi
je 0x40cddc
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40cddc
mov eax, dword [0x4cb088]
nop dword [eax]
cmp dword [esi + 4], eax
je 0x40cdde
mov esi, dword [esi + 8]
test esi, esi
jne 0x40cdd0
xor esi, esi
mov eax, dword [esp + 0x28]
xor dl, dl
movzx ecx, ax
mov dword [esp + 0x14], edx
mov byte [esp + 0x12], dl
mov dword [esp + 0x28], 1
sub ecx, 1
je 0x40cfb1
sub ecx, 1
je 0x40cfb1
sub ecx, 1
je 0x40cfb1
test edi, edi
jne 0x40ce6b
test ax, ax
je 0x40ce21
mov edx, eax
xor ecx, ecx
jmp 0x40ce30
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cfb5
xor edx, edx
mov ecx, eax
push dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0040d420
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40ce56
movzx eax, byte [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x24]
mov edx, 1
mov dword [esp + 0x14], edx
mov byte [esp + 0x12], dl
jmp 0x40d0d8
cmp word [edi + 6], ax
je 0x40ce90
mov word [edi + 6], ax
test ax, ax
jne 0x40ce80
mov byte [edi + 0x19], 1
jmp 0x40ce8a
cmp byte [edi + 0x12], 0
jne 0x40ce8a
mov byte [edi + 0x14], 1
mov dl, 1
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40cf66
test esi, esi
je 0x40cefd
cmp ecx, dword [esi]
je 0x40cf6e
cmp byte [esi + 0x1c], 0
je 0x40cee4
cmp byte [0x4cb08d], 0
je 0x40cee4
mov dword [esp + 0x2c], ecx
mov ecx, esi
call fcn.004904c0
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.004904c0
mov ecx, dword [esp + 0x14]
cmp al, bl
mov ebx, dword [ebp + 8]
movzx ecx, cl
cmovne ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40cef6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40cf6e
push dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0040dcc0
mov esi, eax
test esi, esi
jne 0x40cf4b
cmp byte [esp + 0x1c], al
je 0x40cf31
mov ecx, dword [0x4ca738]
push 1
push eax
push 0xffffffffffffffff
push 0x4bb754
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov ecx, 0x4cc848
push str.Out_of_memory.
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4ca7e7], 0
mov ecx, 1
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], ecx
je 0x40cf6e
mov dl, cl
jmp 0x40cf72
test esi, esi
je 0x40d0dc
mov dl, byte [esp + 0x13]
mov eax, dword [esp + 0x24]
test al, al
mov byte [esi + 0x19], al
sete al
lea eax, [eax*2 + 2]
or byte [edi + 0x13], al
cmp byte [edi + 0x14], 0
jne 0x40d0d4
test dl, dl
jne 0x40cfa0
cmp byte [esp + 0x24], dl
je 0x40d0d4
mov edx, 1
mov dword [esp + 0x14], edx
mov byte [edi + 0x14], dl
jmp 0x40d0d8
test edi, edi
jne 0x40cff3
cmp byte [esp + 0x1c], 0
je 0x40cfd9
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb714
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov ecx, 0x4cc848
push str.Nonexistent_hotkey.
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40d03b
cmp word [edi + 6], si
jne 0x40d03b
cmp byte [esp + 0x1c], 0
je 0x40d021
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb72c
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov ecx, 0x4cc848
push str.Nonexistent_hotkey_variant__IfWin_.
call fcn.0043ee10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 3
jne 0x40d058
xor eax, eax
cmp word [edi + 6], ax
je 0x40d04e
cmp byte [edi + 0x19], al
jmp 0x40d051
cmp byte [esi + 0x1c], al
setne al
inc eax
movzx eax, ax
movzx ecx, word [edi + 6]
cmp ax, 1
jne 0x40d0a3
test cx, cx
je 0x40d085
cmp byte [edi + 0x19], 0
je 0x40d077
xor al, al
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d0d8
mov al, 1
mov byte [edi + 0x19], 1
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d0d8
cmp byte [esi + 0x1c], 0
je 0x40d095
xor al, al
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d0d8
mov al, 1
mov byte [esi + 0x1c], 1
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d0d8
test cx, cx
je 0x40d0bd
cmp byte [edi + 0x19], 0
je 0x40d0d8
mov edx, 1
mov byte [edi + 0x19], 0
mov dword [esp + 0x14], edx
jmp 0x40d0d8
cmp byte [esi + 0x1c], 0
je 0x40d0d8
mov edx, 1
mov word [esi + 0x1b], 0
mov dword [esp + 0x14], edx
jmp 0x40d0d8
mov edx, dword [esp + 0x14]
test esi, esi
jne 0x40d0e7
cmp word [edi + 6], 0
je 0x40cffd
mov al, byte [ebx]
test al, al
je 0x40d24d
movzx ebx, al
test ebx, 0xffffff80
jne 0x40d10f
push 2
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x40d10f
and ebx, 0xffffffdf
movsx eax, bl
add eax, 0xffffffbe
cmp eax, 0x13
ja case.0x40d125.67
movzx eax, byte [eax + 0x40d404]
jmp dword [eax*4 + 0x40d3e8]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x2c], eax
movzx ebx, byte [eax]
test ebx, 0xffffff80
jne 0x40d153
push 2
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x40d153
and ebx, 0xffffffdf
cmp bl, 0x4e
jne 0x40d19b
cmp word [edi + 6], 0
mov eax, dword [esp + 0x2c]
je 0x40d17f
cmp byte [edi + 0x19], 0
jne 0x40d23a
mov edx, 1
mov byte [edi + 0x19], 1
mov dword [esp + 0x14], edx
jmp 0x40d23e
cmp byte [esi + 0x1c], 0
jne 0x40d23a
mov edx, 1
mov byte [esi + 0x1c], 1
mov dword [esp + 0x14], edx
jmp 0x40d23e
push 3
push 0x4bb57c
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40d23a
add eax, 2
cmp word [edi + 6], 0
je 0x40d1da
cmp byte [edi + 0x19], 0
je 0x40d1f1
mov edx, 1
mov byte [edi + 0x19], 0
mov dword [esp + 0x14], edx
jmp 0x40d1f5
cmp byte [esi + 0x1c], 0
je 0x40d1f1
mov edx, 1
mov word [esi + 0x1b], 0
mov dword [esp + 0x14], edx
jmp 0x40d1f5
mov edx, dword [esp + 0x14]
cmp byte [esp + 0x12], 0
je 0x40d23e
xor dl, dl
mov dword [esp + 0x14], edx
jmp 0x40d23e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test esi, esi
je 0x40d23e
cmp byte [eax + 1], 0x30
setne al
mov byte [esi + 0x1a], al
mov eax, dword [esp + 0x18]
jmp 0x40d23e
mov eax, dword [esp + 0x18]
test esi, esi
je 0x40d23a
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov al, byte [eax]
test al, al
jne 0x40d0f1
test dl, dl
je 0x40d256
call fcn.0040c090
cmp byte [esp + 0x1c], 0
je 0x40d3b9
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4b6c08
call fcn.004a2db0
cmp byte [edi + 0x12], 0
jne 0x40d3b9
cmp byte [edi + 0x18], 0
jne 0x40d3b9
cmp byte [0x4cb08d], 0
je 0x40d396
cmp word [edi + 6], 0
jne 0x40d3b9
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40d3b9
nop
mov ecx, esi
call fcn.004904c0
test al, al
jne 0x40d396
mov esi, dword [esi + 8]
test esi, esi
jne 0x40d2b0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
test esi, esi
je 0x40d23a
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, dword [0x4c8020]
add esp, 4
movzx ecx, al
mov byte [esi + 0x17], al
cmp ecx, edx
jle 0x40d300
mov byte [esi + 0x17], dl
jmp case.0x40d125.67
mov edx, dword [esp + 0x14]
cmp al, 1
mov eax, dword [esp + 0x18]
jae 0x40d23e
mov byte [esi + 0x17], 1
jmp 0x40d23e
push str.UseErrorLevel
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
mov edx, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40d23e
add eax, 0xc
jmp 0x40d23e
mov eax, dword [esp + 0x18]
test esi, esi
je 0x40d23a
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
cmp eax, 0x64
ja case.0x40d125.67
test eax, eax
je 0x40d386
cmp byte [edi + 0x14], 0
jne 0x40d386
mov byte [edi + 0x14], 1
mov edx, 1
mov byte [esi + 0x18], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jmp 0x40d23e
mov edx, dword [esp + 0x14]
mov byte [esi + 0x18], al
mov eax, dword [esp + 0x18]
jmp 0x40d23e
cmp word [edi + 6], 0
je 0x40d3c4
cmp byte [edi + 0x19], 0
je 0x40d3b9
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb758
call fcn.004a2db0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40d3b9
nop dword [eax + eax]
cmp byte [eax + 0x1c], 0
jne 0x40d3a3
mov eax, dword [eax + 8]
test eax, eax
jne 0x40d3d0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret