Function at 0x4023b8
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2fc
mov dword [esp], 0x4c9144
call fcn.00416b50
mov dword [esp], 0x4c9134
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402403
xor eax, eax
mov esi, 0x4cba2c
mov ecx, 7
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x4024bc
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2d8], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d0], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2cc], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d4], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2d8]
cmp ebx, esi
jne 0x40246b
mov esi, dword [ebp - 0x2d4]
jmp 0x4024a7
cmp dword [ebp - 0x2d0], ebx
jne 0x40247b
mov esi, dword [ebp - 0x2cc]
jmp 0x4024a7
cmp ebx, ecx
jne 0x402489
lea ebx, [eax + 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4024b6
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x402497
mov esi, edi
jmp 0x4024a7
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4024b6
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x402457
inc eax
cmp eax, 0xe
jne 0x402457
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x268]
mov dword [esp], edx
call fcn.00401592
push eax
mov dword [esp], 0x4c9164
call fcn.00416b50
mov dword [esp], 0x4c9154
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x40251a
xor eax, eax
mov esi, 0x4cb9ec
mov ecx, 7
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x40251a
cmp byte [edx + 0xa], 0
jne 0x4025d5
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x402582
mov esi, dword [ebp - 0x2d0]
jmp 0x4025c0
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x402594
mov esi, dword [ebp - 0x2d8]
jmp 0x4025c0
cmp ebx, ecx
jne 0x4025a2
lea ebx, [eax + 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4025cf
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x4025b0
mov esi, edi
jmp 0x4025c0
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4025cf
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x40256e
inc eax
cmp eax, 0xe
jne 0x40256e
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x250]
mov dword [esp], edx
call fcn.00401592
push edi
mov dword [esp], 0x4c9184
call fcn.00416b50
mov dword [esp], 0x4c9174
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402639
xor esi, esi
lea eax, [eax + 0xc]
mov ecx, 0x16
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov esi, 0x4cb9ac
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x402639
cmp byte [edx + 0xa], 0
jne 0x4026f4
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x4026a1
mov esi, dword [ebp - 0x2d0]
jmp 0x4026df
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x4026b3
mov esi, dword [ebp - 0x2d8]
jmp 0x4026df
cmp ebx, ecx
jne 0x4026c1
lea ebx, [eax + 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4026ee
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x4026cf
mov esi, edi
jmp 0x4026df
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4026ee
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x40268d
inc eax
cmp eax, 0xb
jne 0x40268d
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x238]
mov dword [esp], edx
call fcn.00401592
push ebx
mov dword [esp], 0x4c91a4
call fcn.00416b50
mov dword [esp], 0x4c9194
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402758
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, 0x4cb96c
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov ecx, 7
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x402758
cmp byte [edx + 0xa], 0
jne 0x402813
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x4027c0
mov esi, dword [ebp - 0x2d0]
jmp 0x4027fe
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x4027d2
mov esi, dword [ebp - 0x2d8]
jmp 0x4027fe
cmp ebx, ecx
jne 0x4027e0
lea ebx, [eax + 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40280d
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x4027ee
mov esi, edi
jmp 0x4027fe
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40280d
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x4027ac
inc eax
cmp eax, 0xe
jne 0x4027ac
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x220]
mov dword [esp], edx
call fcn.00401592
push edx
mov dword [esp], 0x4c91c4
call fcn.00416b50
mov dword [esp], 0x4c91b4
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402876
xor eax, eax
mov esi, 0x4cb92c
mov ecx, 6
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x402876
cmp byte [edx + 0xa], 0
jne 0x402931
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x4028de
mov esi, dword [ebp - 0x2d0]
jmp 0x40291c
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x4028f0
mov esi, dword [ebp - 0x2d8]
jmp 0x40291c
cmp ebx, ecx
jne 0x4028fe
lea ebx, [eax + 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40292b
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40290c
mov esi, edi
jmp 0x40291c
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40292b
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x4028ca
inc eax
cmp eax, 0xc
jne 0x4028ca
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x208]
mov dword [esp], edx
call fcn.00401592
push eax
mov dword [esp], 0x4c91e4
call fcn.00416b50
mov dword [esp], 0x4c91d4
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402994
xor eax, eax
mov esi, 0x4cb8ec
mov ecx, 6
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
jmp 0x402994
cmp byte [edx + 0xa], 0
jne 0x402a4f
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x4029fc
mov esi, dword [ebp - 0x2d0]
jmp 0x402a3a
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x402a0e
mov esi, dword [ebp - 0x2d8]
jmp 0x402a3a
cmp ebx, ecx
jne 0x402a1c
lea ebx, [eax + 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x402a49
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x402a2a
mov esi, edi
jmp 0x402a3a
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x402a49
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x4029e8
inc eax
cmp eax, 0xc
jne 0x4029e8
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x1f0]
mov dword [esp], edx
call fcn.00401592
push eax
lea edi, [ebp - 0x268]
lea ecx, [ebp - 0x2c8]
lea esi, [ebp - 0x1d8]
mov dword [esp], edi
mov dword [esp + 4], 6
call fcn.0040163c
push eax
push eax
jmp 0x402a9b
sub esi, 0x18
mov ecx, esi
call fcn.004a45b0
cmp esi, edi
jne 0x402a9b
mov dword [esp], 0x4c9204
call fcn.00416b50
mov dword [esp], 0x4c91f4
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402ae9
xor esi, esi
lea eax, [eax + 0xc]
mov ecx, 0xc
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov esi, str._D
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x402ba4
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x402b51
mov esi, dword [ebp - 0x2d0]
jmp 0x402b8f
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x402b63
mov esi, dword [ebp - 0x2d8]
jmp 0x402b8f
cmp ebx, ecx
jne 0x402b71
lea ebx, [eax + 0x7d]
xor word [edx + eax*2 + 0xc], bx
jmp 0x402b9e
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x402b7f
mov esi, edi
jmp 0x402b8f
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x402b9e
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x402b3d
inc eax
cmp eax, 0x18
jne 0x402b3d
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x268]
mov dword [esp], edx
call fcn.00401592
push ebx
mov dword [esp], 0x4c9224
call fcn.00416b50
mov dword [esp], 0x4c9214
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402c03
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, 0x4cb82c
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov ecx, 0x66
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x402c03
cmp byte [edx + 0xa], 0
jne 0x402cbe
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x402c6b
mov esi, dword [ebp - 0x2d0]
jmp 0x402ca9
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x402c7d
mov esi, dword [ebp - 0x2d8]
jmp 0x402ca9
cmp ebx, ecx
jne 0x402c8b
lea ebx, [eax + 0x7d]
xor word [edx + eax*2 + 0xc], bx
jmp 0x402cb8
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x402c99
mov esi, edi
jmp 0x402ca9
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x402cb8
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x402c57
inc eax
cmp eax, 0x33
jne 0x402c57
mov byte [edx + 0xa], 1
add edx, 0xc
lea esi, [ebp - 0x250]
mov dword [esp], edx
mov ecx, esi
call fcn.00401592
push eax
lea edi, [ebp - 0x268]
lea ecx, [ebp - 0x2bc]
mov dword [esp], edi
mov dword [esp + 4], 2
call fcn.0040163c
push eax
mov ecx, esi
push eax
call fcn.004a45b0
mov ecx, edi
call fcn.004a45b0
mov dword [esp], 0x4c9244
call fcn.00416b50
mov dword [esp], 0x4c9234
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402d5d
xor eax, eax
mov esi, 0x4cb7ec
mov ecx, 0x16
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x402d5d
cmp byte [edx + 0xa], 0
jne 0x402e18
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x402dc5
mov esi, dword [ebp - 0x2d0]
jmp 0x402e03
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x402dd7
mov esi, dword [ebp - 0x2d8]
jmp 0x402e03
cmp ebx, ecx
jne 0x402de5
lea ebx, [eax + 0x7e]
xor word [edx + eax*2 + 0xc], bx
jmp 0x402e12
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x402df3
mov esi, edi
jmp 0x402e03
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x402e12
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x402db1
inc eax
cmp eax, 0xb
jne 0x402db1
mov byte [edx + 0xa], 1
xor eax, eax
add edx, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x2cc], eax
test eax, eax
je 0x4033cc
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call fcn.004a4810
push edi
push edi
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ec], eax
mov dword [esp], 0x4c9264
call fcn.00416b50
mov dword [esp], 0x4c9254
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402eb9
xor esi, esi
lea eax, [eax + 0xc]
mov ecx, 0x16
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov esi, 0x4cb7ec
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x402f75
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2d0], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d8], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e4], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e6], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2dc], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d4], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2d0]
cmp ebx, esi
jne 0x402f21
mov esi, dword [ebp - 0x2d4]
jmp 0x402f60
mov esi, dword [ebp - 0x2d8]
cmp ebx, esi
jne 0x402f33
mov esi, dword [ebp - 0x2dc]
jmp 0x402f60
cmp ebx, ecx
jne 0x402f41
lea ebx, [eax + 0x7e]
xor word [edx + eax*2 + 0xc], bx
jmp 0x402f6f
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x402f4f
mov esi, edi
jmp 0x402f60
mov esi, dword [ebp - 0x2e4]
cmp ebx, esi
jne 0x402f6f
mov si, word [ebp - 0x2e6]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x402f0d
inc eax
cmp eax, 0xb
jne 0x402f0d
mov eax, dword [ebp - 0x2cc]
mov byte [edx + 0xa], 1
add edx, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
xor ebx, ebx
test eax, eax
je 0x40331e
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2b0]
dec eax
mov dword [esp], eax
call fcn.004a6470
push ebx
mov dword [esp], 0x4c9284
call fcn.00416b50
mov dword [esp], 0x4c9274
mov ebx, eax
call fcn.00416b50
cmp byte [ebx], 0
mov edx, eax
jne 0x402ffc
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, str.__
mov dword [eax - 0xc], ecx
mov dword [eax - 8], ecx
mov dword [eax - 4], ecx
mov ecx, 6
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x4030b7
mov ecx, dword [edx + 4]
lea eax, [ecx + 1]
lea edi, [ecx + 3]
mov dword [ebp - 0x2cc], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2d4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x2dc], eax
lea eax, [ecx + 5]
mov dword [ebp - 0x2e0], eax
lea eax, [ecx + 4]
mov word [ebp - 0x2e4], ax
lea eax, [ecx + 2]
mov word [ebp - 0x2d8], ax
lea eax, [ecx + 1]
mov word [ebp - 0x2d0], ax
xor eax, eax
mov ebx, dword [edx]
mov esi, dword [ebp - 0x2cc]
cmp ebx, esi
jne 0x403064
mov esi, dword [ebp - 0x2d0]
jmp 0x4030a2
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x403076
mov esi, dword [ebp - 0x2d8]
jmp 0x4030a2
cmp ebx, ecx
jne 0x403084
lea ebx, [eax + 0x7e]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4030b1
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403092
mov esi, edi
jmp 0x4030a2
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4030b1
mov esi, dword [ebp - 0x2e4]
xor si, word [edx + eax*2 + 0xc]
inc ebx
mov word [edx + eax*2 + 0xc], si
mov dword [edx], ebx
jmp 0x403050
inc eax
cmp eax, 0xc
jne 0x403050
lea edi, [edx + 0xc]
mov byte [edx + 0xa], 1
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea ecx, [ebp - 0x290]
xor edx, edx
mov word [ebp - 0x290], 0
mov ebx, eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x294], edx
mov esi, dword [ebp - 0x2b0]
lea ecx, [ebx + eax]
mov dword [ebp - 0x2cc], eax
mov dword [esp], ecx
lea ecx, [ebp - 0x298]
call fcn.004a6f30
push eax
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x298]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401606
push eax
lea ecx, [ebp - 0x298]
push eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00401606
push edi
lea eax, [ebp - 0x268]
push edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x298]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x403157
push esi
push esi
mov dword [ebp - 0x2cc], eax
inc eax
je 0x4032eb
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x280]
mov dword [esp], eax
call fcn.00401592
push ebx
mov eax, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x280]
add eax, eax
lea ebx, [esi + eax]
cmp esi, ebx
je 0x4031a4
movzx eax, word [esi]
add esi, 2
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
mov word [esi - 2], ax
jmp 0x40318c
mov eax, dword [ebp - 0x2c4]
mov ebx, dword [ebp - 0x2c8]
lea esi, [ebp - 0x280]
mov dword [ebp - 0x2d0], eax
sub eax, ebx
sar eax, 3
imul eax, eax, 0xaaaaaaab
sar eax, 2
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0
mov edi, ebx
jle 0x403237
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004bd7c0
test al, al
jne 0x403286
lea edi, [ebx + 0x18]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004bd7c0
test al, al
jne 0x403286
lea edi, [ebx + 0x30]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004bd7c0
test al, al
jne 0x403286
lea edi, [ebx + 0x48]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004bd7c0
test al, al
jne 0x403286
dec dword [ebp - 0x2d4]
add ebx, 0x60
jmp 0x4031d0
mov eax, dword [ebp - 0x2d0]
sub eax, ebx
cmp eax, 0x30
je 0x403263
cmp eax, 0x48
je 0x403250
cmp eax, 0x18
je 0x403276
jmp 0x4032ad
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004bd7c0
test al, al
jne 0x403286
add edi, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004bd7c0
test al, al
jne 0x403286
add edi, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004bd7c0
test al, al
je 0x4032ad
cmp dword [ebp - 0x2d0], edi
je 0x4032ad
mov eax, dword [ebp - 0x2cc]
lea esi, [ebp - 0x280]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ecx
mov ecx, esi
call fcn.004a45b0
jmp 0x40330a
lea ecx, [ebp - 0x280]
call fcn.004a45b0
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push edx
push edx
test eax, eax
jne 0x403166
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
mov esi, dword [ebp - 0x2b8]
mov ebx, dword [ebp - 0x2bc]
cmp esi, ebx
je 0x403311
mov dword [esp], ebx
call fcn.00401e49
add ebx, 0x18
test eax, eax
je 0x4032f7
mov ebx, 1
jmp 0x403313
xor ebx, ebx
lea ecx, [ebp - 0x298]
call fcn.004a45b0
lea ecx, [ebp - 0x2b0]
call fcn.004a45b0
jmp 0x4033cc
lea ecx, [ebp - 0x2bc]
call fcn.0049efa0
lea ecx, [ebp - 0x2c8]
call fcn.0049efa0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret