Function at 0x401310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4e4
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0xf8], bx
mov ecx, 0x7f
lea edi, [esp + 0xfa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ecx, 0x7c
lea edi, [esp + 0x2fc]
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x2fc]
push ecx
push 0x1f4
push 0x29
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x308], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0x17
lea esi, [esp + 0x490]
lea edi, [esp + 0x60]
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x1c0]
mov ecx, dword [esp + 0x18]
xor eax, eax
and edx, 0xfffffff0
cmp ecx, 0x400
setg al
push ebx
mov dword [esi + 0x1c0], edx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetDC]
push str.Tahoma
lea ecx, [esp + 0x80]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5a
push ebx
mov byte [esp + 0x82], 5
mov dword [esp + 0x78], 0x2bc
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
setne dl
mov eax, 0xc71c71c7
lea edx, [edx + edx + 0xc]
imul ecx, edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [esp + 0x60]
add eax, edx
push ecx
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 0x5a
push ebx
mov dword [esi + 0x68], eax
mov dword [esp + 0x78], 0x190
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
setne dl
mov eax, 0xc71c71c7
lea edx, [edx + edx + 0xa]
imul ecx, edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [esp + 0x60]
add eax, edx
push ecx
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push ebx
push 0
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
lea eax, [esi + 0x1a4]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov ebx, dword [esp + 0x18]
lea edx, [esi + 0x194]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov ebx, dword [esp + 0x18]
lea edx, [esi + 0x184]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
lea edx, [esi + 0x174]
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ecx
push 0x100
lea ecx, [esp + 0xfc]
push ecx
mov dword [edx + 8], eax
push 0x8be5
push 0
mov dword [edx + 0xc], ebx
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010000
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call ebx
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8be4
push 0
mov dword [esi + 0x44], eax
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010001
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call ebx
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8be6
push 0
mov dword [esi + 0x40], eax
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010000
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call ebx
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8bf7
push 0
mov dword [esi + 0x48], eax
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010009
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xf1
push eax
mov dword [esi + 0x4c], eax
call ebx
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8bf8
push 0
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010009
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8be1
push 0
mov dword [esi + 0x50], eax
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010009
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 1
push 0xf1
push eax
mov dword [esi + 0x54], eax
call ebx
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8be2
push 0
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010009
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
mov dword [esi + 0x58], eax
mov ecx, dword [0x41d018]
push ecx
push 0
push edi
push 0xa
push 0xa
push 0xa
push 0xa
push 0x5031c00d
push str.Selection_List_Box
push str.SysListView32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 4
push 4
push 0x1036
push eax
mov dword [esi + 0x60], eax
call ebx
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x60]
push 0x1061
lea eax, [esp + 0x104]
push edx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x44], 0x15e
mov dword [esp + 0x48], eax
call ebx
mov eax, dword [0x41d018]
push 0
push eax
push 0
push edi
push 0xa
push 0xa
push 0xa
push 0xa
push 0x5031c00d
push str.AnalogDFP_List_Box
push str.SysListView32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 4
push 4
push 0x1036
push eax
mov dword [esi + 0x64], eax
call ebx
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x64]
push 0x1061
lea edx, [esp + 0x104]
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x44], 0x15e
mov dword [esp + 0x48], edx
call ebx
test dword [esi + 0x1c0], 0xf0
mov dword [esp + 0x28], 0
jbe 0x401928
lea edx, [esi + 0x3a0]
mov dword [esp + 0x24], edx
jmp 0x401860
mov edx, dword [esp + 0x24]
jmp 0x401860
xor eax, eax
mov dword [esp + 0x2c], 0
mov ecx, 0xc
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0x144]
lea eax, [edx + 0x150]
push eax
push edx
push ecx
lea edx, [esp + 0x104]
push str._d.__S___S_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x10c]
add esp, 0x14
mov ecx, eax
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push 0
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x60]
push 0x104d
push eax
mov dword [esp + 0x40], edi
call ebx
mov edx, dword [esi + 0x60]
lea ecx, [esp + 0xc4]
push ecx
push eax
push 0x102b
push edx
mov dword [esp + 0xe4], 0xf000
mov dword [esp + 0xe0], 0x2000
call ebx
mov eax, dword [esi + 0x1c0]
mov edx, dword [esp + 0x24]
shr eax, 4
inc edi
add edx, 0x90c
and eax, 0xf
cmp edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
jb 0x40184e
mov edi, dword [ebp + 0xc]
push 0x100
lea ecx, [esp + 0xfc]
push ecx
push 0x8be3
push 0
call fcn.00406bd0
mov edx, dword [0x41d018]
add esp, 0x10
push 0
push edx
push 0
push edi
push 0
push 0
push 0
push 0
push 0x50010000
lea eax, [esp + 0x11c]
push eax
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x40]
push 0
push ecx
push 0x30
push edx
mov dword [esi + 0x5c], eax
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x44]
push 0
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x48]
push 0
push edx
push 0x30
push eax
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x54]
push 0
push ecx
push 0x30
push edx
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x58]
push 0
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x4c]
push 0
push edx
push 0x30
push eax
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x50]
push 0
push ecx
push 0x30
push edx
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x5c]
push 0
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esi + 0x70]
push 0
mov eax, dword [esi + 0x60]
push edx
push 0x30
push eax
call ebx
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x64]
push 0
push ecx
push 0x30
push edx
call ebx
mov ecx, dword [esp + 0x20]
mov eax, 0x10
mov dword [esi + 0x178], eax
mov dword [esi + 0x174], eax
mov dword [esi + 0x188], eax
mov ebx, dword [esp + 0x18]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x2e
add eax, 0x32
mov dword [esi + 0x184], eax
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x28
add eax, 0x28
mov dword [esi + 0x198], eax
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x32
mov edx, 0x50
add eax, 0x32
test ecx, ecx
mov dword [esi + 0x17c], edx
mov dword [esi + 0x180], edx
mov dword [esi + 0x194], eax
lea edi, [ebx - 0x64]
jne 0x401a70
mov edi, ebx
mov dword [esi + 0x19c], edi
mov edi, ecx
neg edi
sbb edi, edi
and edi, 0x37
add edi, edx
test ecx, ecx
mov dword [esi + 0x1a8], edi
mov dword [esi + 0x1a4], eax
je 0x401aa1
lea eax, [ebx - 0x64]
mov dword [esi + 0x1ac], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x1ac], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret