Function at 0x40d220
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_string_l1_1_0.dll__wcsnicmp]
push esi
push edi
push 5
mov esi, ecx
mov edi, edx
push 0x4d5050
push esi
mov dword [esp + 0x2c], esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40d302
push 3
lea eax, [esi + 0xa]
push 0x4d505c
push 0x4d5074
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40d441
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x40d33d
push 0x4bfba0
push str.Parameter_3_must_be_blank_in_this_case.
mov ecx, 0x4eb958
call fcn.0043ec50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40d3d0
mov cl, byte [eax + 0x17]
test cl, cl
jne 0x40d354
mov edx, dword [eax + 0xc]
jmp 0x40d356
mov edx, eax
test byte [edx + 0x15], 2
je 0x40d3d0
test cl, cl
jne 0x40d363
mov eax, dword [eax + 0xc]
mov esi, dword [0x4ea1ac]
mov edi, dword [eax]
test esi, esi
je 0x40d381
nop
cmp byte [esi], 6
jne 0x40d37a
cmp dword [esi + 0xc], edi
je 0x40d3ad
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40d370
call fcn.0040c6f0
mov esi, eax
test esi, esi
jne 0x40d393
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], 0x4bfba0
mov dword [esi + 8], 0x4bfba0
mov dword [0x4ea1b8], esi
cmp word [edi], 0
jne 0x40d3da
xor esi, esi
jmp 0x40d3ad
mov esi, dword [0x4ea1ac]
test esi, esi
je 0x40d426
mov ecx, dword [esi + 4]
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d416
test dx, dx
je 0x40d412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d416
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d3f0
xor eax, eax
jmp 0x40d41b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d3ad
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40d3e4
push 0x4bfba0
push str.Parameter_2_must_match_an_existing_If_expression.
mov ecx, 0x4eb958
call fcn.0043ec50
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.004a1f00
test eax, eax
setne byte [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [ebp + 0xc], eax
jne 0x40d4dd
mov dl, 1
mov ecx, edi
call fcn.0040c350
movzx eax, ax
mov dword [esp + 0x28], eax
test ax, ax
jne 0x40d4dd
push 0
push dword [ebp + 0x10]
mov ecx, 0x4eb958
push edi
call fcn.00428790
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40d4dd
movzx ecx, word [edi]
test cx, cx
jne 0x40d4af
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40d4dd
cmp byte [eax + 0x17], cl
jne 0x40d4a9
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
je 0x40d4dd
cmp byte [esp + 0x1c], 0
jne 0x40d2c7
test cx, cx
mov edx, str.Parameters_of_hotkey_functions_must_be_optional.
mov eax, str.Target_label_does_not_exist.
mov ecx, 0x4eb958
push edi
cmove eax, edx
push eax
call fcn.0043ec50
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.0040ec50
mov edi, eax
add esp, 4
test edi, edi
je 0x40d50e
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40d50e
mov eax, dword [0x4ea1b8]
cmp dword [esi + 4], eax
je 0x40d510
mov esi, dword [esi + 8]
test esi, esi
jne 0x40d502
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 0x40d6e3
sub ecx, 1
je 0x40d6e3
sub ecx, 1
je 0x40d6e3
test edi, edi
jne 0x40d59d
test ax, ax
je 0x40d553
mov edx, eax
xor ecx, ecx
jmp 0x40d562
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40d6e7
xor edx, edx
mov ecx, eax
push dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0040db60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40d588
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 0x40d80a
cmp word [edi + 6], ax
je 0x40d5c2
mov word [edi + 6], ax
test ax, ax
jne 0x40d5b2
mov byte [edi + 0x19], 1
jmp 0x40d5bc
cmp byte [edi + 0x12], 0
jne 0x40d5bc
mov byte [edi + 0x14], 1
mov dl, 1
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40d698
test esi, esi
je 0x40d62f
cmp ecx, dword [esi]
je 0x40d6a0
cmp byte [esi + 0x1c], 0
je 0x40d616
cmp byte [0x4e989b], 0
je 0x40d616
mov dword [esp + 0x2c], ecx
mov ecx, esi
call fcn.004916e0
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.004916e0
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 0x40d628
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x40d6a0
push dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0040e360
mov esi, eax
test esi, esi
jne 0x40d67d
cmp byte [esp + 0x1c], al
je 0x40d663
mov ecx, dword [0x4e97d8]
push 1
push eax
push 0xffffffffffffffff
push 0x4d5260
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov ecx, 0x4eb958
push str.Out_of_memory.
call fcn.0043ec50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x4e9883], 0
mov ecx, 1
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], ecx
je 0x40d6a0
mov dl, cl
jmp 0x40d6a4
test esi, esi
je 0x40d80e
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 0x40d806
test dl, dl
jne 0x40d6d2
cmp byte [esp + 0x24], dl
je 0x40d806
mov edx, 1
mov dword [esp + 0x14], edx
mov byte [edi + 0x14], dl
jmp 0x40d80a
test edi, edi
jne 0x40d725
cmp byte [esp + 0x1c], 0
je 0x40d70b
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d51e4
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov ecx, 0x4eb958
push 0x4d51e8
call fcn.0043ec50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40d76d
cmp word [edi + 6], si
jne 0x40d76d
cmp byte [esp + 0x1c], 0
je 0x40d753
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5210
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x20]
mov ecx, 0x4eb958
push str.Nonexistent_hotkey_variant__IfWin_.
call fcn.0043ec50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 3
jne 0x40d78a
xor eax, eax
cmp word [edi + 6], ax
je 0x40d780
cmp byte [edi + 0x19], al
jmp 0x40d783
cmp byte [esi + 0x1c], al
setne al
inc eax
movzx eax, ax
movzx ecx, word [edi + 6]
cmp ax, 1
jne 0x40d7d5
test cx, cx
je 0x40d7b7
cmp byte [edi + 0x19], 0
je 0x40d7a9
xor al, al
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d80a
mov al, 1
mov byte [edi + 0x19], 1
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d80a
cmp byte [esi + 0x1c], 0
je 0x40d7c7
xor al, al
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d80a
mov al, 1
mov byte [esi + 0x1c], 1
mov dl, al
mov dword [esp + 0x14], edx
jmp 0x40d80a
test cx, cx
je 0x40d7ef
cmp byte [edi + 0x19], 0
je 0x40d80a
mov edx, 1
mov byte [edi + 0x19], 0
mov dword [esp + 0x14], edx
jmp 0x40d80a
cmp byte [esi + 0x1c], 0
je 0x40d80a
mov edx, 1
mov word [esi + 0x1b], 0
mov dword [esp + 0x14], edx
jmp 0x40d80a
mov edx, dword [esp + 0x14]
test esi, esi
jne 0x40d819
cmp word [edi + 6], 0
je 0x40d72f
movzx eax, word [ebx]
test ax, ax
je 0x40d995
mov ecx, eax
nop word [eax + eax]
movzx ebx, cx
test ebx, 0xffffff80
jne 0x40d84e
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 0x40d84e
and ebx, 0xffffffdf
add ebx, 0xffffffbe
cmp ebx, 0x13
ja case.0x40d861.67
movzx eax, byte [ebx + 0x40db4c]
jmp dword [eax*4 + 0x40db30]
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x2c], eax
movzx ebx, word [eax]
test ebx, 0xffffff80
jne 0x40d891
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 0x40d891
and ebx, 0xffffffdf
cmp bx, 0x4e
jne 0x40d8da
cmp word [edi + 6], 0
mov eax, dword [esp + 0x2c]
je 0x40d8be
cmp byte [edi + 0x19], 0
jne 0x40d97c
mov edx, 1
mov byte [edi + 0x19], 1
mov dword [esp + 0x14], edx
jmp 0x40d980
cmp byte [esi + 0x1c], 0
jne 0x40d97c
mov edx, 1
mov byte [esi + 0x1c], 1
mov dword [esp + 0x14], edx
jmp 0x40d980
push 3
push 0x4d4ec0
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40d97c
add eax, 4
cmp word [edi + 6], 0
je 0x40d919
cmp byte [edi + 0x19], 0
je 0x40d930
mov edx, 1
mov byte [edi + 0x19], 0
mov dword [esp + 0x14], edx
jmp 0x40d934
cmp byte [esi + 0x1c], 0
je 0x40d930
mov edx, 1
mov word [esi + 0x1b], 0
mov dword [esp + 0x14], edx
jmp 0x40d934
mov edx, dword [esp + 0x14]
cmp byte [esp + 0x12], 0
je 0x40d980
xor dl, dl
mov dword [esp + 0x14], edx
jmp 0x40d980
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test esi, esi
je 0x40d980
cmp word [eax + 2], 0x30
setne al
mov byte [esi + 0x1a], al
mov eax, dword [esp + 0x18]
jmp 0x40d980
mov eax, dword [esp + 0x18]
test esi, esi
je 0x40d97c
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x18], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x40d830
test dl, dl
je 0x40d99e
call fcn.0040c770
cmp byte [esp + 0x1c], 0
je 0x40db03
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
cmp byte [edi + 0x12], 0
jne 0x40db03
cmp byte [edi + 0x18], 0
jne 0x40db03
cmp byte [0x4e989b], 0
je 0x40dae0
cmp word [edi + 6], 0
jne 0x40db03
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40db03
mov ecx, esi
call fcn.004916e0
test al, al
jne 0x40dae0
mov esi, dword [esi + 8]
test esi, esi
jne 0x40d9f6
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 0x40d97c
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov edx, dword [0x4e7020]
add esp, 4
movzx ecx, al
mov byte [esi + 0x17], al
cmp ecx, edx
jle 0x40da48
mov byte [esi + 0x17], dl
jmp case.0x40d861.67
mov edx, dword [esp + 0x14]
cmp al, 1
mov eax, dword [esp + 0x18]
jae 0x40d980
mov byte [esi + 0x17], 1
jmp 0x40d980
push str.UseErrorLevel
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edx, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40d980
add eax, 0x18
jmp 0x40d980
mov eax, dword [esp + 0x18]
test esi, esi
je 0x40d97c
add eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
add esp, 4
cmp eax, 0x64
ja case.0x40d861.67
test eax, eax
je 0x40dad0
cmp byte [edi + 0x14], 0
jne 0x40dad0
mov byte [edi + 0x14], 1
mov edx, 1
mov byte [esi + 0x18], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jmp 0x40d980
mov edx, dword [esp + 0x14]
mov byte [esi + 0x18], al
mov eax, dword [esp + 0x18]
jmp 0x40d980
cmp word [edi + 6], 0
je 0x40db0e
cmp byte [edi + 0x19], 0
je 0x40db03
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5268
call fcn.004a6070
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 0x40db03
cmp byte [eax + 0x1c], 0
jne 0x40daed
mov eax, dword [eax + 8]
test eax, eax
jne 0x40db15
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret