Function at 0x411c90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe0
test esi, esi
mov eax, dword [0x42a8d0]
mov ecx, dword [0x44d6b4]
push edi
mov edi, 0x244
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
jne 0x411cc5
xor eax, eax
pop edi
add esp, 0xe0
ret
call fcn.004119a0
test eax, eax
je 0x411cd3
mov edi, 0xf6
push ebx
push ebp
lea edx, [esp + 0x10]
push edx
mov ebx, 0xa
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 4
mov dword [esp + 0x18], 0xd
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x9c]
push fcn.00411b40
push eax
mov eax, esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call fcn.00411870
lea ecx, [esp + 0x84]
push ecx
push eax
lea edx, [esp + 0xac]
push edx
call fcn.00411bb0
mov ebp, dword [sym.imp.USER32.dll_MapWindowPoints]
add esp, 0x14
push 2
lea eax, [esp + 0x80]
push eax
push esi
push 0
call ebp
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x2c], eax
push 0x411b70
push ecx
mov eax, esi
call fcn.00411870
lea edx, [esp + 0x94]
push edx
push eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0xd4]
push eax
call fcn.00411bb0
add esp, 0x14
push 2
lea ecx, [esp + 0x90]
push ecx
push esi
push 0
call ebp
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x8c]
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
push fcn.00411ae0
push edx
mov ebx, 1
mov eax, esi
call fcn.00411870
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.00411bb0
add esp, 0x14
push 2
lea edx, [esp + 0x70]
push edx
push esi
push 0
call ebp
lea eax, [esp + 0x9c]
push 0x411920
push eax
mov ebx, 0xa
mov eax, esi
call fcn.00411870
lea ecx, [esp + 0x5c]
push ecx
push eax
lea edx, [esp + 0xac]
push edx
mov dword [esp + 0x54], eax
call fcn.00411bb0
add esp, 0x14
push 2
lea eax, [esp + 0x58]
push eax
push esi
push 0
call ebp
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
sub ebx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
call fcn.004119a0
test eax, eax
mov ebp, 1
je 0x411e8b
cmp dword [esp + 0x20], ebp
jne 0x411e8b
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x5c]
sub edx, ebx
sub eax, ecx
sub edx, ecx
sub edx, eax
mov dword [esp + 0x38], eax
add edi, edx
cmp dword [esp + 0x48], 0
je 0x411ebd
call fcn.004119a0
test eax, eax
je 0x411ea1
cmp dword [esp + 0x20], ebp
je 0x411ebd
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
sub eax, dword [esp + 0x7c]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov dword [esp + 0x30], ebx
jmp 0x411ed1
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x24], 0
je 0x411ee4
cmp dword [0x44d6b4], ebp
mov ebp, dword [esp + 0x70]
jne 0x411ee8
mov ebp, dword [esp + 0x58]
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push esi
push ecx
sub edi, ebx
push edi
push ebp
push edx
push 0x50012003
push 0x423e26
push str.BUTTON
and eax, fcn.00401000
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
mov ebx, eax
push esi
mov dword [esp + 0x78], ebx
call edi
push 1
mov ebp, eax
push ebp
push 0x30
push ebx
call edi
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x4c]
sub dword [esp + 0x18], ecx
xor eax, eax
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetDC]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebp
push 0x2450
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xf8]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x64]
push ecx
push edi
mov dword [esp + 0x14], eax
call ebp
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x48]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
add edi, dword [esp + 0x4c]
test ebp, ebp
je 0x41204a
call fcn.004119a0
test eax, eax
je 0x411fd3
cmp dword [esp + 0x20], 1
je 0x41204a
cmp ebp, 1
jne 0x411fe2
mov eax, dword [esp + 0x34]
cmp edi, eax
jge 0x411fe2
mov edi, eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0xc]
jle 0x411ff4
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0xf0]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0xc]
push 0x1a
push eax
push edi
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.004119a0
test eax, eax
je 0x412078
cmp dword [esp + 0x20], 1
jne 0x412078
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
call fcn.00411980
sub eax, dword [esp + 0x28]
add edi, dword [esp + 0x38]
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jg 0x412056
xor ebp, ebp
jmp 0x41205a
mov ebp, dword [esp + 0x2c]
cmp edi, ebp
jge 0x411fe6
mov edi, ebp
jmp 0x411fe6
sub edi, eax
mov ebp, edi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x412070
mov dword [esp + 0xc], 0
jmp 0x412096
sub eax, ecx
mov dword [esp + 0xc], eax
jmp 0x412096
add edi, dword [esp + 0x30]
cmp edi, ebp
jg 0x412084
xor ebp, ebp
jmp 0x412088
sub edi, ebp
mov ebp, edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add edx, ecx
mov dword [esp + 0xc], edx
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [esp + 0x10]
push 0x1c
cdq
mov ebx, eax
mov eax, dword [esp + 0x20]
sub eax, edi
xor ebx, edx
sub ebx, edx
cdq
xor eax, edx
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x10]
add edx, eax
push edx
cdq
sub eax, edx
sar eax, 1
add ebx, ebp
sub edi, eax
push ebx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x44], ebx
call fcn.00411980
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
test ebp, ebp
jle 0x41216d
xor edi, edi
cmp dword [esp + 0x44], edi
jle 0x41216d
jmp 0x412110
mov ebx, dword [esp + edi*4 + 0xc4]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x14]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0x1e
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
add eax, ebp
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
add edi, 1
cmp edi, dword [esp + 0x44]
jl 0x412110
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4121bb
cmp dword [esp + 0x20], 1
mov eax, dword [esp + 0x78]
jne 0x412197
sub eax, dword [esp + 0x70]
push 0x1e
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x10]
push eax
push ebx
push 0
push 0
jmp 0x4121b2
mov edi, dword [esp + 0x70]
sub eax, edi
cdq
xor eax, edx
push 0x1c
sub eax, edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x74]
push ebx
add edx, edi
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
xor ebx, ebx
cmp dword [esp + 0x40], ebx
jle 0x412235
mov edi, dword [esp + ebx*4 + 0x9c]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0x14]
push edx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
call fcn.004119a0
mov ecx, eax
neg ecx
sbb ecx, ecx
mov eax, ebp
cdq
add ecx, 2
idiv ecx
mov ecx, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x18]
call fcn.00411980
mov ecx, dword [esp + 0x1c]
push 0x1d
add edx, eax
mov eax, dword [esp + 0x18]
push 0
push 0
call fcn.00411980
add eax, dword [esp + 0x18]
push eax
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
add ebx, 1
cmp ebx, dword [esp + 0x40]
jl 0x4121c3
mov edi, dword [esp + 0x68]
push edi
push str.SP_MBC_CHKBOX
push esi
call dword [sym.imp.USER32.dll_SetPropA]
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0xe0
ret