Function at 0x4027d8
Capabilities:
Create thread
Get graphical window text
Identify system language via api
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415f52
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea edi, [esi + 0x20]
cmp dword [edi + 4], 0
jne 0x402848
test edi, edi
je 0x402830
lea eax, [edi - 0x20]
jmp 0x402832
xor eax, eax
push 0x3f0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, edi
call fcn.00402d60
cmp dword [esi + 0x9c], 0
jne 0x402870
test edi, edi
je 0x40285a
add edi, 0xffffffe0
jmp 0x40285c
xor edi, edi
push 0x3fb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi + 0x9c], eax
push 0x65
push dword [0x420568]
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push dword [esi + 4]
call ebx
push 0x3f6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov esi, eax
push 0x31
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x50], 0x2bc
call edi
push 1
push eax
push 0x30
push esi
call ebx
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0x48
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0xb
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
neg eax
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x3c]
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
push 0x3f4
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push esi
push 0x30
push eax
call ebx
and dword [esp + 0xb0], 0
push 0x7c
push dword [0x420568]
call dword [sym.imp.USER32.dll_LoadBitmapW]
and dword [esp + 0x24], 0
lea edi, [esp + 0x28]
mov esi, eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x402977
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x80], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x84], eax
push 0x3f7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [ebx + 0x88]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x4029ae
lea eax, [edi + 8]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x1c], eax
push eax
mov byte [esp + 0xb4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push eax
mov dword [ebx + 0x98], eax
call dword [sym.imp.GDI32.dll_SelectObject]
call fcn.00401f84
push eax
lea ecx, [esp + 0x14]
call fcn.00401d98
mov byte [esp + 0xb0], 2
mov esi, dword [0x420568]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
lea ecx, [esp + 0x10]
push edi
push 0x69
push esi
mov dword [esp + 0x20], edi
call fcn.0040186b
test eax, eax
je 0x402a25
push dword [esp + 0x10]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
push 0x6f
push esi
lea ecx, [esp + 0x1c]
call fcn.0040186b
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
je 0x402a4a
push dword [esp + 0x10]
push 0x3f4
push dword [ebx + 4]
call edi
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push 0x71
push esi
call fcn.0040186b
test eax, eax
je 0x402a6c
push dword [esp + 0x10]
push 0x3f9
push dword [ebx + 4]
call edi
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push 0x76
push esi
call fcn.0040186b
test eax, eax
je 0x402a8e
push dword [esp + 0x10]
push 0x3fc
push dword [ebx + 4]
call edi
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push 0x6b
push esi
call fcn.0040186b
test eax, eax
je 0x402aad
push dword [esp + 0x10]
push 1
push dword [ebx + 4]
call edi
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push 0x6c
push esi
call fcn.0040186b
mov esi, dword [esp + 0x10]
test eax, eax
je 0x402acd
push esi
push 2
push dword [ebx + 4]
call edi
lea ecx, [esi - 0x10]
mov byte [esp + 0xb0], 1
call fcn.00402350
mov ecx, dword [0x4214fc]
push 0xa
pop edx
call fcn.0040175a
mov dword [esp + 0x18], eax
test eax, eax
je 0x402bd1
call fcn.00401f84
push eax
lea ecx, [esp + 0x18]
call fcn.00401d98
mov byte [esp + 0xb0], 3
call fcn.00401f84
push eax
lea ecx, [esp + 0x14]
call fcn.00401d98
mov byte [esp + 0xb0], 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [esp + 0x10]
lea esi, [eax + 1]
push esi
call fcn.004022d5
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
lea ecx, [esp + 0x14]
call fcn.00401bfc
push dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00401a34
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x4214fc]
push 0
push 0xc
pop edx
call fcn.00401731
pop ecx
test eax, eax
je 0x402bbb
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x20]
push str._s__d._d
push eax
call fcn.00401a34
mov esi, dword [esp + 0x28]
add esp, 0x14
push esi
push 0x3f6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea ecx, [edi - 0x10]
call fcn.00402350
lea ecx, [esi - 0x10]
call fcn.00402350
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [0x4214fc]
push 0xb
pop edx
call fcn.0040175a
test eax, eax
je 0x402bee
push eax
push 0x3f8
push dword [ebx + 4]
call edi
cmp byte [ebx + 0xa4], 0
je 0x402c0e
xor eax, eax
push eax
push eax
push ebx
push 0x40244b
push eax
push eax
call fcn.00407dec
add esp, 0x18
mov dword [ebx + 0x7c], eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0040743d
mov esp, ebp
pop ebp
ret 8