Function at 0x403e57
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], 0x4db144
call fcn.00419690
mov dword [esp], 0x4db134
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x403ea2
xor eax, eax
mov esi, 0x5383ec
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 0x403f5b
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 0x403f0a
mov esi, dword [ebp - 0x2d4]
jmp 0x403f46
cmp dword [ebp - 0x2d0], ebx
jne 0x403f1a
mov esi, dword [ebp - 0x2cc]
jmp 0x403f46
cmp ebx, ecx
jne 0x403f28
lea ebx, [eax + 0x7a]
xor word [edx + eax*2 + 0xc], bx
jmp 0x403f55
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x403f36
mov esi, edi
jmp 0x403f46
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x403f55
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 0x403ef6
inc eax
cmp eax, 0xe
jne 0x403ef6
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x268]
mov dword [esp], edx
call fcn.004015a2
push eax
mov dword [esp], 0x4db164
call fcn.00419690
mov dword [esp], 0x4db154
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x403fb9
xor eax, eax
mov esi, 0x5383ac
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 0x403fb9
cmp byte [edx + 0xa], 0
jne 0x404074
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 0x404021
mov esi, dword [ebp - 0x2d0]
jmp 0x40405f
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404033
mov esi, dword [ebp - 0x2d8]
jmp 0x40405f
cmp ebx, ecx
jne 0x404041
lea ebx, [eax + 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40406e
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40404f
mov esi, edi
jmp 0x40405f
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40406e
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 0x40400d
inc eax
cmp eax, 0xe
jne 0x40400d
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x250]
mov dword [esp], edx
call fcn.004015a2
push edi
mov dword [esp], 0x4db184
call fcn.00419690
mov dword [esp], 0x4db174
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x4040d8
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, 0x53836c
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
jmp 0x4040d8
cmp byte [edx + 0xa], 0
jne 0x404193
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 0x404140
mov esi, dword [ebp - 0x2d0]
jmp 0x40417e
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404152
mov esi, dword [ebp - 0x2d8]
jmp 0x40417e
cmp ebx, ecx
jne 0x404160
lea ebx, [eax + 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40418d
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40416e
mov esi, edi
jmp 0x40417e
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40418d
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 0x40412c
inc eax
cmp eax, 0xb
jne 0x40412c
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x238]
mov dword [esp], edx
call fcn.004015a2
push ebx
mov dword [esp], 0x4db1a4
call fcn.00419690
mov dword [esp], 0x4db194
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x4041f7
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, 0x53832c
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 0x4041f7
cmp byte [edx + 0xa], 0
jne 0x4042b2
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 0x40425f
mov esi, dword [ebp - 0x2d0]
jmp 0x40429d
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404271
mov esi, dword [ebp - 0x2d8]
jmp 0x40429d
cmp ebx, ecx
jne 0x40427f
lea ebx, [eax + 0x7b]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4042ac
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40428d
mov esi, edi
jmp 0x40429d
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4042ac
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 0x40424b
inc eax
cmp eax, 0xe
jne 0x40424b
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x220]
mov dword [esp], edx
call fcn.004015a2
push edx
mov dword [esp], 0x4db1c4
call fcn.00419690
mov dword [esp], 0x4db1b4
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x404315
xor eax, eax
mov esi, 0x5382ec
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 0x404315
cmp byte [edx + 0xa], 0
jne 0x4043d0
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 0x40437d
mov esi, dword [ebp - 0x2d0]
jmp 0x4043bb
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x40438f
mov esi, dword [ebp - 0x2d8]
jmp 0x4043bb
cmp ebx, ecx
jne 0x40439d
lea ebx, [eax + 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4043ca
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x4043ab
mov esi, edi
jmp 0x4043bb
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4043ca
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 0x404369
inc eax
cmp eax, 0xc
jne 0x404369
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x208]
mov dword [esp], edx
call fcn.004015a2
push eax
mov dword [esp], 0x4db1e4
call fcn.00419690
mov dword [esp], 0x4db1d4
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x404433
xor eax, eax
mov esi, 0x5382ac
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 0x404433
cmp byte [edx + 0xa], 0
jne 0x4044ee
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 0x40449b
mov esi, dword [ebp - 0x2d0]
jmp 0x4044d9
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x4044ad
mov esi, dword [ebp - 0x2d8]
jmp 0x4044d9
cmp ebx, ecx
jne 0x4044bb
lea ebx, [eax + 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4044e8
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x4044c9
mov esi, edi
jmp 0x4044d9
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4044e8
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 0x404487
inc eax
cmp eax, 0xc
jne 0x404487
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x1f0]
mov dword [esp], edx
call fcn.004015a2
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.004016ce
push eax
push eax
jmp 0x40453a
sub esi, 0x18
mov ecx, esi
call fcn.004b4970
cmp esi, edi
jne 0x40453a
mov dword [esp], 0x4db204
call fcn.00419690
mov dword [esp], 0x4db1f4
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x404588
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._G__
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x404643
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 0x4045f0
mov esi, dword [ebp - 0x2d0]
jmp 0x40462e
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404602
mov esi, dword [ebp - 0x2d8]
jmp 0x40462e
cmp ebx, ecx
jne 0x404610
lea ebx, [eax + 0x7c]
xor word [edx + eax*2 + 0xc], bx
jmp 0x40463d
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x40461e
mov esi, edi
jmp 0x40462e
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x40463d
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 0x4045dc
inc eax
cmp eax, 0x18
jne 0x4045dc
mov byte [edx + 0xa], 1
add edx, 0xc
lea ecx, [ebp - 0x268]
mov dword [esp], edx
call fcn.004015a2
push ebx
mov dword [esp], 0x4db224
call fcn.00419690
mov dword [esp], 0x4db214
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x4046a2
xor ecx, ecx
lea eax, [eax + 0xc]
mov esi, str._D
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 0x4046a2
cmp byte [edx + 0xa], 0
jne 0x40475d
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 0x40470a
mov esi, dword [ebp - 0x2d0]
jmp 0x404748
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x40471c
mov esi, dword [ebp - 0x2d8]
jmp 0x404748
cmp ebx, ecx
jne 0x40472a
lea ebx, [eax + 0x7d]
xor word [edx + eax*2 + 0xc], bx
jmp 0x404757
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x404738
mov esi, edi
jmp 0x404748
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x404757
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 0x4046f6
inc eax
cmp eax, 0x33
jne 0x4046f6
mov byte [edx + 0xa], 1
add edx, 0xc
lea esi, [ebp - 0x250]
mov dword [esp], edx
mov ecx, esi
call fcn.004015a2
push eax
lea edi, [ebp - 0x268]
lea ecx, [ebp - 0x2bc]
mov dword [esp], edi
mov dword [esp + 4], 2
call fcn.004016ce
push eax
mov ecx, esi
push eax
call fcn.004b4970
mov ecx, edi
call fcn.004b4970
mov dword [esp], 0x4db244
call fcn.00419690
mov dword [esp], 0x4db234
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x4047fc
xor eax, eax
mov esi, 0x5381ac
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 0x4047fc
cmp byte [edx + 0xa], 0
jne 0x4048b7
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 0x404864
mov esi, dword [ebp - 0x2d0]
jmp 0x4048a2
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404876
mov esi, dword [ebp - 0x2d8]
jmp 0x4048a2
cmp ebx, ecx
jne 0x404884
lea ebx, [eax + 0x7d]
xor word [edx + eax*2 + 0xc], bx
jmp 0x4048b1
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x404892
mov esi, edi
jmp 0x4048a2
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4048b1
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 0x404850
inc eax
cmp eax, 0xb
jne 0x404850
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 0x404e6b
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.004b4bd0
push edi
push edi
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ec], eax
mov dword [esp], 0x4db264
call fcn.00419690
mov dword [esp], 0x4db254
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x404958
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, 0x53816c
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 1
cmp byte [edx + 0xa], 0
jne 0x404a14
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 0x4049c0
mov esi, dword [ebp - 0x2d4]
jmp 0x4049ff
mov esi, dword [ebp - 0x2d8]
cmp ebx, esi
jne 0x4049d2
mov esi, dword [ebp - 0x2dc]
jmp 0x4049ff
cmp ebx, ecx
jne 0x4049e0
lea ebx, [eax + 0x7e]
xor word [edx + eax*2 + 0xc], bx
jmp 0x404a0e
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x4049ee
mov esi, edi
jmp 0x4049ff
mov esi, dword [ebp - 0x2e4]
cmp ebx, esi
jne 0x404a0e
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 0x4049ac
inc eax
cmp eax, 0xb
jne 0x4049ac
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 0x404dbd
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2b0]
dec eax
mov dword [esp], eax
call fcn.004b6830
push ebx
mov dword [esp], 0x4db284
call fcn.00419690
mov dword [esp], 0x4db274
mov ebx, eax
call fcn.00419690
cmp byte [ebx], 0
mov edx, eax
jne 0x404a9b
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 0x404b56
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 0x404b03
mov esi, dword [ebp - 0x2d0]
jmp 0x404b41
mov esi, dword [ebp - 0x2d4]
cmp ebx, esi
jne 0x404b15
mov esi, dword [ebp - 0x2d8]
jmp 0x404b41
cmp ebx, ecx
jne 0x404b23
lea ebx, [eax + 0x7e]
xor word [edx + eax*2 + 0xc], bx
jmp 0x404b50
mov esi, dword [ebp - 0x2dc]
cmp ebx, esi
jne 0x404b31
mov esi, edi
jmp 0x404b41
mov esi, dword [ebp - 0x2e0]
cmp ebx, esi
jne 0x404b50
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 0x404aef
inc eax
cmp eax, 0xc
jne 0x404aef
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.004b72f0
push eax
mov eax, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x298]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401698
push eax
lea ecx, [ebp - 0x298]
push eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00401698
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 0x404bf6
push esi
push esi
mov dword [ebp - 0x2cc], eax
inc eax
je 0x404d8a
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x280]
mov dword [esp], eax
call fcn.004015a2
push ebx
mov eax, dword [ebp - 0x27c]
mov esi, dword [ebp - 0x280]
add eax, eax
lea ebx, [esi + eax]
cmp esi, ebx
je 0x404c43
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 0x404c2b
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 0x404cd6
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004ce508
test al, al
jne 0x404d25
lea edi, [ebx + 0x18]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004ce508
test al, al
jne 0x404d25
lea edi, [ebx + 0x30]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004ce508
test al, al
jne 0x404d25
lea edi, [ebx + 0x48]
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004ce508
test al, al
jne 0x404d25
dec dword [ebp - 0x2d4]
add ebx, 0x60
jmp 0x404c6f
mov eax, dword [ebp - 0x2d0]
sub eax, ebx
cmp eax, 0x30
je 0x404d02
cmp eax, 0x48
je 0x404cef
cmp eax, 0x18
je 0x404d15
jmp 0x404d4c
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004ce508
test al, al
jne 0x404d25
add edi, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004ce508
test al, al
jne 0x404d25
add edi, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004ce508
test al, al
je 0x404d4c
cmp dword [ebp - 0x2d0], edi
je 0x404d4c
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.004b4970
jmp 0x404da9
lea ecx, [ebp - 0x280]
call fcn.004b4970
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 0x404c05
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 0x404db0
mov dword [esp], ebx
call fcn.00401edb
add ebx, 0x18
test eax, eax
je 0x404d96
mov ebx, 1
jmp 0x404db2
xor ebx, ebx
lea ecx, [ebp - 0x298]
call fcn.004b4970
lea ecx, [ebp - 0x2b0]
call fcn.004b4970
jmp 0x404e6b
lea ecx, [ebp - 0x2bc]
call fcn.004af360
lea ecx, [ebp - 0x2c8]
call fcn.004af360
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret