Function at 0x430274
Capabilities:
Enumerate files on windows
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6d4
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x6d0], eax
push ebx
push esi
xor esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], 0x5a44e4
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0x5a44e0
mov dword [esp + 0x24], 0x60
push edi
test ecx, ecx
je 0x4982b5
cmp word [ecx], si
je 0x4982b5
test edx, edx
je 0x4982b5
cmp word [edx], si
je 0x4982b5
push 0xffffffffffffffff
push ecx
mov ebx, 0x104
mov dword [0x5a44e0], esi
lea eax, [esp + 0x4d8]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
test eax, eax
jne 0x4304f8
lea ecx, [esp + 0x4d0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x43030b
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x4ce], 0x5c
jne 0x497f2d
lea eax, [esp + 0x4d0]
mov dword [esp + 0x10], 0x80070002
mov dword [esp + 0x3c], eax
lea edi, [esp + 0x2b0]
lea eax, [esp + 0x24]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x54], eax
xor eax, eax
stosd dword es:[edi], eax
push 6
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x2b4]
push eax
push 0x4012fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x497f53
mov eax, dword [0x5a43f4]
mov edi, dword [sym.imp.KERNEL32.dll_DecodePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x497f83
push 0x40132c
call ebx
test eax, eax
je 0x497fac
push 0x40130c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a43f4], eax
test esi, esi
je 0x497faa
xor eax, eax
push eax
push eax
push 0x40148c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x430403
push eax
push eax
push 0x100
call esi
test eax, eax
je 0x4304f8
mov eax, dword [0x5a43f0]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
test eax, eax
jne 0x497f8d
push 0x40132c
call ebx
test eax, eax
je 0x498037
push 0x401348
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a43f0], eax
test edi, edi
je 0x498037
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x28]
push eax
push 0x34
call edi
test eax, eax
je 0x4304f8
mov eax, dword [esp + 0x18]
lea esi, [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor ecx, ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4304eb
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x28]
push eax
push 0x34
call edi
test eax, eax
je 0x4304f8
xor eax, eax
mov esi, ebx
cmp word [ebx], ax
je 0x4304f2
lea eax, [esp + 0x10]
push eax
push 0x10
push esi
lea ecx, [esp + 0x48]
call fcn.0043013c
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x497f97
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x498037
xor eax, eax
mov ecx, dword [esp + 0x6dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x8007000e
jmp 0x4304d4
mov edi, dword [esp + 0x10]
jmp 0x4304b9
mov eax, 0x80004005
jmp 0x4304d4
push 0xffffffffffffffff
push 0x4012f8
lea eax, [esp + 0x4d8]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x4304f8
jmp 0x430329
cmp eax, 6
jae 0x430395
lea eax, [esp + 0x10]
push eax
push 0xa
lea eax, [esp + 0x2b8]
push eax
lea ecx, [esp + 0x48]
call fcn.0043013c
cmp dword [esp + 0x10], esi
je 0x4304d2
jmp 0x430395
push eax
call edi
mov esi, eax
jmp 0x4303d7
push eax
call edi
mov edi, eax
jmp 0x430443
add esi, 0xa
xor eax, eax
cmp word [esi], ax
jne 0x43049c
jmp 0x4304b9
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov edi, 0x3ff
xor ebx, ebx
mov ecx, eax
and ecx, edi
inc ebx
lea edx, [edi + 0xa]
cmp cx, bx
je 0x497fcf
cmp cx, 0xd
jne 0x497fd1
mov eax, edx
mov word [esp + 0x2a8], ax
and eax, edi
or eax, 0x400
mov word [esp + 0x2ac], dx
mov word [esp + 0x2aa], ax
push 0xa
push 6
lea eax, [esp + 0x2c4]
push eax
movzx eax, word [esp + esi*2 + 0x2b4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push 0xa
lea eax, [esp + 0x2c4]
push eax
call fcn.0043013c
cmp dword [esp + 0x10], 0
je 0x4304d2
inc esi
cmp esi, 3
jb 0x497ff0
lea eax, [esp + 0x10]
push eax
push 0xa
push 0x409100
lea ecx, [esp + 0x48]
call fcn.0043013c
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4304d2
push 0xffffffffffffffff
lea eax, [esp + 0x4d4]
mov esi, 0x104
push eax
lea eax, [esp + 0x2d0]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
test eax, eax
jne 0x4982ab
push 0xffffffffffffffff
push 0x408dd0
lea eax, [esp + 0x2d0]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x4982ab
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4980d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4304d4
movzx eax, ax
or eax, 0x80070000
jmp 0x4304d4
lea esi, [esp + 0x4d0]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4980e3
sub esi, ecx
sar esi, 1
lea eax, [esp + 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x498110
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x4304d4
test byte [esp + 0x58], 0x10
je 0x4980f2
mov ecx, 0x4046fc
lea eax, [esp + 0x84]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x498149
test dx, dx
je 0x498145
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x498149
add eax, 4
add ecx, 4
test dx, dx
jne 0x498123
xor eax, eax
jmp 0x498150
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
je 0x4980f2
mov ecx, 0x405a68
lea eax, [esp + 0x84]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x498189
test dx, dx
je 0x498182
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x498189
add eax, 4
add ecx, 4
test dx, dx
jne 0x498160
xor ecx, ecx
xor eax, eax
inc ecx
jmp 0x498190
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
je 0x4980f2
push ecx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x90]
push 0x40910c
push eax
call fcn.004782dc
add esp, 0x14
cmp eax, 0xffffffff
je 0x4980f2
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x4982a6
xor ecx, ecx
mov word [esp + eax + 0x2c8], cx
lea eax, [esp + 0x84]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x2d0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x4980f2
push 0xffffffffffffffff
push 0x4012f8
lea eax, [esp + 0x2d0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x4980f2
push 0xffffffffffffffff
push dword [esp + 0x28]
lea eax, [esp + 0x2d0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
test eax, eax
jne 0x4980f2
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
je 0x4980f2
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x49827d
mov ax, word [esp + 0x14]
mov word [ecx], ax
cmp dword [esp + 0x1c], 0
je 0x49829d
lea eax, [esp + 0x2c8]
push eax
push dword [esp + 0x38]
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
xor eax, eax
mov ebx, eax
jmp 0x498102
call fcn.0047a54d
mov eax, 0x80070003
jmp 0x4304d4
mov eax, 0x80070057
jmp 0x4304d4