Function at 0x4048d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdcc
mov eax, dword [0x406274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov eax, edi
mov dword [ebp - 0xa70], edi
push 0xfffffffffffffff5
mov dword [ebp - 0xa88], eax
mov dword [ebp - 0xdcc], eax
mov dword [ebp - 0xa8c], eax
mov dword [ebp - 0xc38], eax
mov dword [ebp - 0xa90], edi
mov dword [ebp - 0xa94], edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [0x4065d8], eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push edi
push edi
push 0x100
mov dword [0x4065dc], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_SetThreadPreferredUILanguages]
push edi
push edi
push 1
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
cmp dword [ebp + 8], 2
jge 0x404958
mov edi, 0xa0
jmp 0x40499c
push 0x401678
push dword [ebx + 4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40499c
mov eax, dword [ebx + 4]
mov esi, edi
push 0x2f
pop ecx
mov dword [ebp - 0xa80], eax
mov dword [ebp - 0xa78], esi
cmp word [eax], cx
jne 0x4049a6
push 0x272d
push dword [0x4065dc]
push edi
call fcn.00401b9f
add esp, 0xc
push 0x57
pop edi
call fcn.00403333
jmp 0x405446
push 2
pop edi
cmp dword [ebp + 8], edi
jle 0x40516b
mov dword [ebp - 0xaa0], 0x72
mov dword [ebp - 0xaa4], 0x52
mov dword [ebp - 0xa9c], 0x44
mov eax, dword [ebx + edi*4]
cmp word [eax], cx
jne 0x405168
push 0x401680
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4049f9
inc dword [0x4065cc]
jmp 0x405131
push 0x40168c
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404a4b
test esi, 0xff000000
jne 0x40513f
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
je 0x40513f
or esi, 0x80000000
mov edi, ecx
mov eax, dword [ebx + edi*4]
mov dword [ebp - 0xa90], eax
jmp 0x40512b
push 0x401698
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404a9d
test esi, 0xff000000
jne 0x40513f
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
je 0x40513f
or esi, 0x20000000
mov edi, ecx
mov eax, dword [ebx + edi*4]
mov dword [ebp - 0xa94], eax
jmp 0x40512b
push 0x4016ac
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404ae1
test esi, 0xff000000
jne 0x40513f
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
je 0x40513f
or esi, 0x8000000
jmp 0x404a8d
push 0x4016c0
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404b0c
test esi, 0xff000000
jne 0x40513f
or esi, 0x2000000
jmp 0x40512b
push 0x4016d0
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404b37
test esi, 0xff000000
jne 0x40513f
or esi, 0x1000000
jmp 0x40512b
push 0x4016e0
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404b7e
test esi, 0xef000000
jne 0x40513f
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
je 0x40513f
or esi, 0x40000000
jmp 0x404a3b
push 0x4016f4
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404c3b
test esi, 0xaf000000
jne 0x40513f
lea eax, [edi + 1]
cmp eax, dword [ebp + 8]
je 0x40513f
mov edx, dword [ebx + edi*4 + 4]
push 0x2f
pop eax
cmp word [edx], ax
je 0x40513f
lea eax, [edi + 2]
cmp eax, dword [ebp + 8]
je 0x40513f
mov ecx, dword [ebx + eax*4]
push 0x2f
pop esi
cmp word [ecx], si
mov esi, dword [ebp - 0xa78]
je 0x40513f
mov edi, dword [ebp - 0xa88]
or esi, 0x10000000
mov dword [ebp - 0xa78], esi
cmp edi, 0x64
je 0x40515e
mov dword [ebp + edi*4 - 0xdc8], edx
mov edi, eax
mov edx, dword [ebp - 0xdcc]
inc edx
mov dword [ebp - 0xa88], edx
mov dword [ebp - 0xdcc], edx
mov edx, dword [ebp - 0xa8c]
mov dword [ebp + edx*4 - 0xc34], ecx
mov ecx, dword [ebp - 0xc38]
inc ecx
mov dword [ebp - 0xa8c], ecx
mov dword [ebp - 0xc38], ecx
jmp 0x405131
push 6
push 0x40170c
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404d4d
test esi, 0xfb000000
jne 0x40513f
lea eax, [edi + 1]
mov dword [ebp - 0xa7c], eax
cmp eax, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop ecx
cmp word [eax], cx
je 0x40513f
push 0x3a
push dword [ebx + edi*4]
or esi, 0x4000000
mov dword [ebp - 0xa78], esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x404ca8
mov eax, 0x81
jmp 0x404cc3
movzx eax, word [eax + 2]
push 0x72
pop ecx
cmp ax, cx
je 0x404cc0
push 0x52
pop ecx
cmp ax, cx
jne 0x40513f
push 0x41
pop eax
mov ecx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa74], eax
push 0x64
pop edx
cmp dword [ebp - 0xa70], edx
je 0x40513f
inc edi
inc ecx
mov dword [ebp - 0xa7c], ecx
lea ecx, [ebp - 0xa70]
push dword [ebx + edi*4]
push eax
call fcn.00401a70
push 0x3a
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x40513f
lea ecx, [ebp - 0xa98]
push ecx
lea ecx, [eax + 2]
lea edx, [ebp - 0xa81]
call fcn.00401e99
test eax, eax
jne 0x40513f
mov ecx, dword [ebp - 0xa7c]
cmp ecx, dword [ebp + 8]
je 0x405131
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
mov eax, dword [ebp - 0xa74]
jne 0x404ccf
jmp 0x405131
push 0x12
push 0x40171c
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404e2d
test esi, 0xfb000000
jne 0x40513f
lea eax, [edi + 1]
mov dword [ebp - 0xa7c], eax
cmp eax, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop ecx
cmp word [eax], cx
je 0x40513f
push 0x3a
push dword [ebx + edi*4]
or esi, 0x4000000
mov dword [ebp - 0xa78], esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x404dba
mov eax, 0x84
jmp 0x404dd5
movzx eax, word [eax + 2]
push 0x72
pop ecx
cmp ax, cx
je 0x404dd2
push 0x52
pop ecx
cmp ax, cx
jne 0x40513f
push 0x44
pop eax
mov ecx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa74], eax
push 0x64
pop edx
cmp dword [ebp - 0xa70], edx
je 0x40513f
inc edi
inc ecx
mov dword [ebp - 0xa7c], ecx
lea ecx, [ebp - 0xa70]
push dword [ebx + edi*4]
push eax
call fcn.00401a70
mov ecx, dword [ebp - 0xa7c]
cmp ecx, dword [ebp + 8]
je 0x405131
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
mov eax, dword [ebp - 0xa74]
jne 0x404de1
jmp 0x405131
push 0x401744
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x404ef2
test esi, 0xfb000000
jne 0x40513f
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
je 0x40513f
or esi, 0x4000000
mov dword [ebp - 0xa78], esi
push 0x64
pop eax
cmp dword [ebp - 0xa70], eax
je 0x40513f
inc edi
inc ecx
mov dword [ebp - 0xa74], ecx
lea ecx, [ebp - 0xa70]
push dword [ebx + edi*4]
push 2
call fcn.00401a70
push 0x3a
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x40513f
lea ecx, [ebp - 0xa98]
push ecx
lea ecx, [eax + 2]
lea edx, [ebp - 0xa81]
call fcn.00401e99
test eax, eax
jne 0x40513f
mov ecx, dword [ebp - 0xa74]
cmp ecx, dword [ebp + 8]
je 0x405131
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
cmp word [eax], dx
jne 0x404e79
jmp 0x405131
push 7
push 0x401750
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404fd4
test esi, 0xfb000000
jne 0x40513f
lea eax, [edi + 1]
mov dword [ebp - 0xa7c], eax
cmp eax, dword [ebp + 8]
je 0x40513f
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop ecx
cmp word [eax], cx
je 0x40513f
push 0x3a
push dword [ebx + edi*4]
or esi, 0x4000000
mov dword [ebp - 0xa78], esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x404f60
push 0x33
pop eax
push 0x64
pop edx
jmp 0x404f7c
movzx eax, word [eax + 2]
cmp eax, 0x67
jne 0x404f6d
push 0x13
jmp 0x404f5a
push 0x64
pop edx
cmp ax, dx
jne 0x40513f
push 0x23
pop eax
mov ecx, dword [ebp - 0xa7c]
mov dword [ebp - 0xa74], eax
cmp dword [ebp - 0xa70], edx
je 0x40513f
inc edi
inc ecx
mov dword [ebp - 0xa7c], ecx
lea ecx, [ebp - 0xa70]
push dword [ebx + edi*4]
push eax
call fcn.00401a70
mov ecx, dword [ebp - 0xa7c]
cmp ecx, dword [ebp + 8]
je 0x405131
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop edx
push 0x64
cmp word [eax], dx
mov eax, dword [ebp - 0xa74]
pop edx
jne 0x404f88
jmp 0x405131
push 0xc
push 0x401760
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4050c3
test esi, 0xfb000000
jne 0x40513f
push 0x3a
push dword [ebx + edi*4]
or esi, 0x4000000
mov dword [ebp - 0xa78], esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x40513f
movzx ecx, word [edx + 2]
test cx, cx
je 0x40513f
xor eax, eax
cmp word [edx + 4], ax
jne 0x40513f
cmp ecx, 0x65
je 0x405076
cmp ecx, 0x45
je 0x405076
push 0x64
pop edx
cmp cx, dx
je 0x40506f
cmp cx, word [ebp - 0xa9c]
je 0x40506f
cmp cx, word [ebp - 0xaa0]
je 0x405068
cmp cx, word [ebp - 0xaa4]
jne 0x40513f
mov ecx, 0x408
jmp 0x40507e
mov ecx, 0x208
jmp 0x40507e
push 0x64
mov ecx, 0x108
pop edx
mov dword [ebp - 0xa74], ecx
cmp dword [ebp - 0xa70], edx
je 0x40513f
push eax
push ecx
lea ecx, [ebp - 0xa70]
call fcn.00401a70
lea eax, [edi + 1]
cmp eax, dword [ebp + 8]
je 0x405131
mov eax, dword [ebx + edi*4 + 4]
push 0x2f
pop ecx
push 0
cmp word [eax], cx
mov ecx, dword [ebp - 0xa74]
pop eax
push 0x64
pop edx
jne 0x405084
jmp 0x405131
push 0x40177c
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4050dc
or esi, 0x10
jmp 0x40512b
push 0x401784
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4050f8
or esi, 0x80
jmp 0x40512b
push 0x40178c
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x405114
or esi, 0x100
jmp 0x40512b
push 0x401794
push dword [ebx + edi*4]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40513f
or esi, 0x20
mov dword [ebp - 0xa78], esi
inc edi
cmp edi, dword [ebp + 8]
jge 0x40516b
push 0x2f
pop ecx
jmp 0x4049d0
push dword [ebx + edi*4]
push 0x2713
push dword [0x4065dc]
push esi
call fcn.00401b9f
add esp, 0x10
push 0x57
pop eax
jmp 0x405448
mov eax, 0xa0
jmp 0x405448
push eax
jmp 0x405142
cmp dword [0x4065cc], 0
je 0x40526b
and dword [ebp - 0xa74], 0
mov ebx, dword [0x406040]
test ebx, ebx
je 0x40526b
mov edx, 0x406048
mov dword [ebp - 0xa88], edx
mov edi, ebx
xor ecx, ecx
lea esi, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, cx
jne 0x40519f
mov ecx, dword [ebp - 0xa74]
sub edi, esi
mov eax, dword [edx]
sar edi, 1
inc ecx
mov dword [ebp - 0xa74], ecx
mov dword [ebp - 0xa8c], ecx
test eax, eax
je 0x40524d
mov esi, edx
push edi
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405227
mov ecx, dword [0x4065dc]
mov edx, 0x40179c
call fcn.00401aa6
mov ecx, dword [0x4065dc]
mov edx, ebx
call fcn.00401aa6
mov ecx, dword [0x4065dc]
mov edx, 0x401114
call fcn.00401aa6
mov edx, dword [esi]
mov ecx, dword [0x4065dc]
call fcn.00401aa6
mov ecx, dword [0x4065dc]
mov edx, 0x4015f0
call fcn.00401aa6
mov eax, dword [ebp - 0xa8c]
inc eax
mov dword [ebp - 0xa8c], eax
lea esi, [eax*8 + 0x406040]
mov eax, dword [esi]
test eax, eax
jne 0x4051cd
mov edx, dword [ebp - 0xa88]
mov ecx, dword [ebp - 0xa74]
mov ebx, dword [ecx*8 + 0x406040]
add edx, 8
mov dword [ebp - 0xa88], edx
test ebx, ebx
jne 0x405198
mov esi, dword [ebp - 0xa78]
mov eax, esi
mov ecx, 0x8000000
and eax, 0xff000000
cmp eax, ecx
ja 0x40534b
je 0x4052de
test eax, eax
je 0x4052d7
cmp eax, 0x1000000
je 0x4052d0
cmp eax, 0x2000000
je 0x4052b7
cmp eax, 0x4000000
jne 0x40536b
mov ecx, dword [ebp - 0xa80]
lea eax, [ebp - 0xa70]
push eax
mov edx, esi
call fcn.004046fc
jmp 0x4053f8
push 0x4043a0
push esi
push dword [ebp - 0xa80]
call fcn.004038b8
add esp, 0xc
jmp 0x4053f8
push 0x404450
jmp 0x4052bc
push 0x403910
jmp 0x4052bc
mov ecx, dword [ebp - 0xa94]
lea edx, [ebp - 0xa74]
and dword [ebp - 0xa74], 0
call fcn.00402890
mov edi, eax
test edi, edi
jne 0x405318
push dword [ebp - 0xa74]
push 0x4042f0
push esi
push dword [ebp - 0xa80]
call fcn.004038b8
add esp, 0x10
mov edi, eax
push dword [ebp - 0xa74]
call dword [sym.imp.msvcrt.dll_free]
cmp byte [0x4065d0], 0
pop ecx
jne 0x4053fa
push 0x272a
push dword [0x4065d8]
push esi
call fcn.00401b9f
add esp, 0xc
jmp 0x4053fa
cmp eax, 0x20000000
je 0x4053e5
cmp eax, 0x40000000
je 0x4053c4
cmp eax, 0x50000000
je 0x4053c4
cmp eax, 0x80000000
je 0x40537e
push esi
push 0x4017b0
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
or edi, 0xffffffff
jmp 0x4053fa
push 0x4015fc
push dword [ebp - 0xa90]
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4053a4
push eax
call dword [sym.imp.msvcrt.dll__wperror]
pop ecx
push 0x57
pop edi
jmp 0x4053fa
push ebx
push 0x403ad0
push esi
push dword [ebp - 0xa80]
call fcn.004038b8
push ebx
mov edi, eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
jmp 0x4053fa
push dword [ebp - 0xa90]
mov ecx, dword [ebp - 0xa80]
lea eax, [ebp - 0xc38]
push esi
push eax
lea edx, [ebp - 0xdcc]
call fcn.004040ed
jmp 0x4053f8
push dword [ebp - 0xa94]
mov ecx, dword [ebp - 0xa80]
mov edx, esi
call fcn.00404281
mov edi, eax
push 0xa
lea eax, [ebp - 0x10c]
push eax
push dword [0x4065e0]
call dword [sym.imp.msvcrt.dll__ultow]
push 0xa
lea eax, [ebp - 0x88]
push eax
push dword [0x4065d4]
call dword [sym.imp.msvcrt.dll__ultow]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x272b
push dword [0x4065d8]
push esi
call fcn.00401b9f
add esp, 0x2c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405760
leave
ret