Function at 0x409960
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431bd2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x43ec2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.CEPSDNMON_:_CheckApplication_r_n
push 0x442e1c
mov dword [ebp - 0x484], eax
call fcn.004013e0
mov edi, dword [ebx + 8]
push edi
push str.CEPSDNMON_:_CheckApplication_InfoNum____d__r_n
xor esi, esi
push 0x442e1c
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x480], edi
call fcn.004013e0
add esp, 0x14
cmp edi, esi
jle 0x40a012
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], esi
jmp 0x4099e2
xor esi, esi
xor eax, eax
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - method.CCommandLineInfo.virtual_0], vtable.CMap_int__int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____.0
mov dword [ebp - 0x49c], esi
mov dword [ebp - 0x498], 0x11
mov dword [ebp - 0x494], esi
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x48c], esi
mov dword [ebp - 0x488], 0xa
xor ecx, ecx
mov eax, 2
mov edx, 4
mul edx
seto cl
mov dword [ebp - 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.0040d175
xor ecx, ecx
xor edi, edi
add esp, 4
cmp eax, edi
setne cl
mov dword [ebp - 0x49c], eax
cmp ecx, edi
je 0x40a035
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x49c]
mov dword [eax + 4], ecx
xor eax, eax
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x498], 2
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
push str.kernel32.dll
mov dword [ebp - 0x458], edx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x409b0d
push str.GetUserGeoID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x438], eax
cmp eax, edi
je 0x409b0d
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x10
call dword [ebp - 0x438]
mov esi, eax
mov eax, dword [ebp - 0x434]
cmp eax, edi
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x44c], 0x4372b0
jl 0x40a035
mov ecx, dword [ebp - 0x430]
cmp ecx, dword [ebx + 8]
jge 0x40a035
mov edx, dword [ebx + 4]
mov ecx, dword [eax + edx + 0x14]
add eax, edx
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
mov edx, dword [eax + 4]
mov dword [ebp - 0x424], edx
mov ecx, dword [eax]
lea esi, [eax + 0x1c]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], edi
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x409b91
push edi
mov ecx, esi
call fcn.00401a40
mov edx, dword [esi]
lea ecx, [ebp - 0x458]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x460], ecx
push 0x4372e0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x46c], edx
mov dword [ebp - 0x468], 1
mov dword [ebp - 0x464], eax
call fcn.00401bf0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x45c]
push 1
call fcn.0040bcb0
mov ecx, dword [ebp - 0x440]
mov edi, eax
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x409c43
cmp dword [esi + 0xc], 0
jl 0x409c31
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x409c31
push eax
call fcn.00401610
mov dword [ebp - 0x438], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409c24
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x438]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x409c3d
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00401af0
mov ecx, dword [ebp - 0x440]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x484]
add esi, 0x28
lea ecx, [ebp - 0x46c]
or edi, 0xffffffff
mov dword [esi + 0x54], 0x13
mov dword [esi + 0x58], ecx
test esi, esi
je 0x409ca9
mov eax, dword [esi + 0x60]
test eax, eax
je 0x409ca9
push str.Download
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409ca9
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x54]
push edx
push ecx
call eax
mov edi, eax
mov dword [esi + 0x5c], edi
mov dword [ebp - 0x438], edi
cmp edi, 0xfffffffe
je 0x409cc0
cmp edi, 0x80000000
jne 0x409d65
mov edx, dword [ebp - 0x430]
cmp edx, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0x434]
mov ecx, 1
lea edi, [eax + 0x1c]
mov eax, dword [edi]
sub ecx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
or eax, ecx
jge 0x409cf8
push 0
mov ecx, edi
call fcn.00401a40
mov eax, dword [edi]
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x42c]
lea edx, [ebp - 0x458]
lea eax, [ebp - 0x47c]
or edi, 0xffffffff
mov dword [ebp - 0x478], 1
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x470], edx
mov dword [esi + 0x54], 8
mov dword [esi + 0x58], eax
test esi, esi
je 0x409d5f
mov eax, dword [esi + 0x60]
test eax, eax
je 0x409d5f
push str.Download
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409d5f
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
push ecx
push edx
call eax
mov edi, eax
mov dword [esi + 0x5c], edi
mov dword [ebp - 0x438], edi
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x434]
add eax, esi
lea ecx, [eax + 0xc]
lea eax, [ebp - 0x414]
lea edi, [eax + 2]
jmp 0x409d90
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409d90
sub eax, edi
sar eax, 1
push eax
lea edx, [ebp - 0x414]
push edx
call fcn.00401af0
mov edi, dword [ebp - 0x430]
cmp edi, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
push ecx
add eax, esi
mov ecx, esp
mov dword [ebp - 0x4a8], esp
push str.Error
mov dword [eax + 8], 0x270f
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x4a4], esp
push str.MonitoringTarget
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x4ac], esp
push str.Common
call fcn.00401bf0
mov byte [ebp - 4], 4
cmp edi, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
add eax, esi
mov esi, dword [eax + 0xc]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
mov dword [ebp - 0x43c], esp
mov dword [ebp - 0x43c], esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x409e51
cmp eax, dword [esi]
jne 0x409e51
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x409e8c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40a03a
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00418405
add esp, 0x10
mov ecx, dword [ebp - 0x43c]
lea edx, [ebp - 0x448]
add edi, 0x10
mov dword [ecx], edi
push edx
mov byte [ebp - 4], 0
call fcn.00402f40
add esp, 0x14
mov eax, dword [ebp - 0x430]
mov byte [ebp - 4], 5
cmp eax, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x448]
mov esi, dword [eax + 0x10]
lea edi, [eax + 0x10]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x409f29
cmp dword [esi + 0xc], 0
jl 0x409f1d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x409f1d
push eax
call fcn.00401610
mov dword [ebp - 0x43c], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409f10
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x43c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x409f29
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.00401af0
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x409f55
cmp eax, 0xffffffff
je 0x409f55
push eax
push str.CEPSDNMON_:_DownloadEnter_Error____d__r_n
push 0x442e1c
mov dword [ebp - 0x444], VariantClear
call fcn.004013e0
add esp, 0xc
mov edx, dword [ebp - 0x430]
cmp edx, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0x434]
mov eax, dword [eax]
push eax
push str.CEPSDNMON_:_CheckApplication_ApplicationCodeName____s__r_n
push 0x442e1c
call fcn.004013e0
mov ecx, dword [ebp - 0x430]
add esp, 0xc
cmp ecx, dword [ebx + 8]
jge 0x40a035
mov eax, dword [ebx + 4]
add eax, dword [ebp - 0x434]
mov edx, dword [eax + 0x10]
push edx
push str.CEPSDNMON_:_CheckApplication_ExeName____s__r_n
push 0x442e1c
call fcn.004013e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409fd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x4a0]
mov dword [ebp - method.CCommandLineInfo.virtual_0], vtable.CMap_int__int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____.0
call fcn.0040bd40
mov eax, dword [ebp - 0x430]
add dword [ebp - 0x434], 0x24
inc eax
cmp eax, dword [ebp - 0x480]
mov dword [ebp - 0x430], eax
jl 0x4099e0
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004183f6
mov esp, ebp
pop ebp
ret 4
call fcn.0040d813
call fcn.004019f0
int3