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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x478fad
mov ecx, dword [ebp + 0xc]
mov byte [edi + 0xc5], 1
cmp word [ecx], 0
je 0x478226
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x20], SysReAllocString
mov dword [esp + 0x2c], SysReAllocString
mov dword [esp + 0x18], SysReAllocString
mov dword [esp + 0x14], SysReAllocString
mov byte [esp + 0x1f], 0
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [edi + 4]
mov esi, eax
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edx, eax
mov dword [esp + 0x30], edx
test edx, edx
je 0x478275
mov dword [esp + 0x20], 9
jmp 0x478287
xor eax, eax
test esi, esi
setne al
lea eax, [eax*4 + 1]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
je 0x478543
nop dword [eax]
movzx esi, ax
test esi, 0xffffff80
jne 0x4782bd
push 2
push esi
call fcn.004b15e4
add esp, 8
test eax, eax
je 0x4782bd
and esi, 0xffffffdf
add esi, 0xfffffff7
cmp esi, 0x50
ja case.0x4782cc.10
movzx eax, byte [esi + 0x478fe0]
jmp dword [eax*4 + 0x478fbc]
add dword [esp + 0xc], 2
mov esi, dword [ebp + 8]
cmp dword [esp + 0xc], esi
je 0x478523
mov ecx, dword [esp + 0xc]
mov dword [ebp + 8], ecx
cmp word [ecx], 0
je 0x47853b
movzx eax, word [ecx]
jmp 0x4782a0
mov esi, dword [ebp + 8]
push 8
push str.AutoSize
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne case.0x4784cc.73
add dword [esp + 0xc], 0x10
mov byte [esp + 0x1b], 1
jmp case.0x4784cc.73
mov esi, dword [ebp + 8]
push 6
push str.Center
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne case.0x4784cc.73
add dword [esp + 0xc], 0xc
mov dword [esp + 0x1c], SysReAllocString
mov dword [esp + 0x28], SysReAllocString
jmp case.0x4784cc.73
mov esi, dword [ebp + 8]
push 8
push str.Minimize
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x478375
add dword [esp + 0xc], 0x10
mov dword [esp + 0x20], 6
jmp case.0x4784cc.73
push 8
push str.Maximize
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne case.0x4784cc.73
add dword [esp + 0xc], 0x10
mov dword [esp + 0x20], 3
jmp case.0x4784cc.73
mov esi, dword [ebp + 8]
push 2
push 0x4ec2e4
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x4783c8
add dword [esp + 0xc], 4
mov dword [esp + 0x20], 8
jmp case.0x4784cc.73
push 0xa
push str.NoActivate
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne case.0x4784cc.73
add dword [esp + 0xc], 0x14
mov dword [esp + 0x20], 4
jmp case.0x4784cc.73
mov esi, dword [ebp + 8]
push 7
push str.Restore
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne case.0x4784cc.73
add dword [esp + 0xc], 0xe
mov dword [esp + 0x20], 9
jmp case.0x4784cc.73
mov esi, dword [ebp + 8]
push 6
push str.Center
lea eax, [esi + 2]
push eax
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x47846e
mov cx, word [esi]
call fcn.0040ba80
cmp ax, 0x58
jne 0x478459
add dword [esp + 0xc], 0xe
mov dword [esp + 0x1c], SysReAllocString
jmp 0x4782e5
add dword [esp + 0xc], 0xe
mov dword [esp + 0x28], SysReAllocString
jmp 0x4782e5
mov esi, dword [ebp + 8]
push 4
push str.Hide
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x478490
add dword [esp + 0xc], 8
mov dword [esp + 0x20], eax
jmp 0x4782e5
lea eax, [esp + 0xc]
add esi, 2
push eax
push esi
call fcn.004b8a9b
add esp, 8
cmp dword [esp + 0xc], esi
mov esi, dword [ebp + 8]
fstp qword [esp + 0x48]
je 0x47851f
mov cx, word [esi]
call fcn.0040ba80
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x4784cc.73
movzx eax, byte [eax + 0x479048]
jmp dword [eax*4 + 0x479034]
cvttsd2si eax, qword [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp case.0x4784cc.73
cvttsd2si eax, qword [esp + 0x48]
mov dword [esp + 0x28], eax
jmp case.0x4784cc.73
cvttsd2si eax, qword [esp + 0x48]
mov ecx, edi
push eax
call fcn.0043dd70
mov dword [esp + 0x14], eax
jmp case.0x4784cc.73
cvttsd2si eax, qword [esp + 0x48]
mov ecx, edi
push eax
call fcn.0043dd70
mov dword [esp + 0x10], eax
jmp case.0x4784cc.73
mov dword [esp + 0xc], esi
push esi
push str.Invalid_option.
mov ecx, 0x4f9a70
call fcn.0043bff0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x27], 0
test eax, eax
je 0x478572
cmp eax, 9
je 0x47856a
cmp eax, 4
jne 0x478581
test esi, esi
jne 0x478572
test edx, edx
je 0x478581
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esp + 0x27], 1
cmp byte [edi + 0xc3], 0
je 0x4785bb
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x10], ecx
jbe 0x4785bb
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x4785ae
push eax
mov ecx, edi
call fcn.0047dfa0
mov ecx, dword [esp + 0xc]
inc ecx
add esi, 0x40
mov dword [esp + 0xc], ecx
cmp ecx, dword [edi + 0x10]
jb 0x478597
cmp dword [edi + 0xcc], 0
jne 0x478643
push 0x1c
call fcn.004abcce
add esp, 4
mov dword [edi + 0xd0], eax
push 0x1c
call fcn.004abcce
mov dword [edi + 0xcc], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0xd0]
add esp, 4
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0xcc]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0xcc]
mov dword [eax], 0x1c
mov eax, dword [edi + 0xd0]
mov dword [eax], 0x1c
mov eax, dword [edi + 0xcc]
mov dword [eax + 4], 3
mov eax, dword [edi + 0xd0]
mov dword [eax + 4], 3
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
sete byte [esp + 0x47]
test eax, eax
jne 0x478885
cmp byte [esp + 0x1b], 0
je 0x478779
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x10], ecx
jbe 0x47873b
xor eax, eax
mov dword [esp + 0xc], eax
nop dword [eax + eax]
mov esi, dword [edi + 0x18]
add esi, eax
cmp byte [esi + 4], 0x19
je 0x47870a
cmp byte [esi + 6], 0xff
je 0x4786ae
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [edi + 4]
jne 0x478702
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x478702
lea eax, [esp + 0x70]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x74]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x78], edx
mov ecx, dword [esp + 0x10]
cmovg edx, dword [esp + 0x78]
cmp dword [esp + 0x7c], ecx
mov dword [esp + 0x14], edx
cmovg ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
jmp 0x47870a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add dword [esp + 0xc], 0x40
inc eax
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
jb 0x478690
test edx, edx
jle 0x478730
add edx, dword [edi + 0x78]
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x47873b
add ecx, dword [edi + 0x7c]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x478885
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x478885
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
add dword [esp + 0x10], eax
jmp 0x478885
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp edx, 0x80000000
je 0x478795
cmp ecx, 0x80000000
jne 0x478885
cmp byte [edi + 0xc3], 0
je 0x478809
cmp edx, 0x80000000
jne 0x4787b3
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x14], eax
cmp ecx, 0x80000000
jne 0x478885
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], esi
test eax, eax
je 0x478885
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x478885
lea eax, [esp + 0x70]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
add esi, eax
mov dword [esp + 0x10], esi
jmp 0x478885
lea eax, [esp + 0x70]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x14], 0x80000000
jne 0x47884e
test dword [edi + 0x3c], 0x200000
je 0x478840
mov ecx, dword [edi + 0xcc]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x478840
push 0x14
call esi
mov edx, eax
jmp 0x478842
xor edx, edx
sub edx, dword [esp + 0x70]
add edx, dword [esp + 0x78]
mov dword [esp + 0x14], edx
cmp dword [esp + 0x10], 0x80000000
jne 0x478885
test dword [edi + 0x3c], 0x100000
je 0x478877
mov ecx, dword [edi + 0xd0]
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0xc]
jg 0x478877
push 3
call esi
mov ecx, eax
jmp 0x478879
xor ecx, ecx
sub ecx, dword [esp + 0x74]
add ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
cmp byte [edi + 0xc3], 0
je 0x4788ef
cmp byte [edi + 0xc0], 0
je 0x4788ca
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x10], ecx
jbe 0x4788ca
xor esi, esi
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x4788bd
push 0
push eax
mov ecx, edi
call fcn.0047d760
mov ecx, dword [esp + 0x30]
inc ecx
add esi, 0x40
mov dword [esp + 0x30], ecx
cmp ecx, dword [edi + 0x10]
jb 0x4788a4
mov eax, dword [esp + 0x1c]
mov ecx, SysReAllocString
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
cmove eax, ecx
mov dword [esp + 0x28], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp byte [esp + 0x47], 0
mov dword [esp + 0x2c], eax
je 0x478e70
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 4]
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x478957
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x478957
mov esi, 1
jmp 0x478959
xor esi, esi
push 0xffffffffffffffec
push dword [edi + 4]
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x68]
push esi
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
mov eax, esi
and eax, 0x100000
mov dword [esp + 0x14], eax
je 0x4789cc
mov eax, dword [edi + 0xd0]
mov ecx, dword [edi + 0x90]
add ecx, dword [edi + 0x78]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0xd0]
cmp eax, 0x80000000
jne 0x4789b3
mov eax, dword [ecx + 0xc]
push 0
inc eax
mov dword [ecx + 0x10], eax
push dword [edi + 0xd0]
push 0
push dword [edi + 4]
call edx
mov edx, dword [sym.imp.USER32.dll_SetScrollInfo]
and esi, 0x200000
je 0x478a0d
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0x94]
add ecx, dword [edi + 0x7c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0xcc]
cmp eax, 0x80000000
jne 0x4789fa
mov eax, dword [ecx + 0xc]
push 0
inc eax
mov dword [ecx + 0x10], eax
push dword [edi + 0xcc]
push 1
push dword [edi + 4]
call edx
cmp dword [esp + 0x14], 0
je 0x478a39
mov ecx, dword [esp + 0x48]
cmp ecx, 0x80000000
je 0x478a39
mov eax, dword [edi + 0x94]
add eax, dword [edi + 0x7c]
cmp ecx, eax
jge 0x478a39
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x6c], eax
test esi, esi
mov esi, dword [esp + 0x5c]
je 0x478a62
cmp esi, 0x80000000
je 0x478a62
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
cmp esi, eax
jge 0x478a62
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [esp + 0x68], eax
cmp dword [esp + 0x30], 0
je 0x478a98
movaps xmm0, xmmword [esp + 0x60]
lea eax, [esp + 0x30]
push eax
push 0
push 0x83
push dword [edi + 4]
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x4c], 0x7fff
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x34]
add dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x478ad7
test dword [esp + 0xc], 0x40000000
je 0x478ad7
lea ecx, [esp + 0x90]
mov byte [esp + 0x1b], 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x478af0
push 0
lea eax, [esp + 0x94]
mov byte [esp + 0x1f], 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x94]
sub edx, dword [esp + 0x90]
cmp byte [edi + 0xc3], 0
mov dword [esp + 0x30], eax
je 0x478b52
cmp byte [esp + 0x1b], 0
jne 0x478b52
cmp esi, 0x80000000
jne 0x478b39
mov eax, dword [esp + 0x10]
cmp eax, edx
cmovg eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x48], 0x80000000
mov ecx, dword [esp + 0x14]
jne 0x478b56
cmp ecx, eax
cmovg ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x478b56
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0x80000001
mov esi, dword [esp + 0x10]
jne 0x478b78
sub edx, esi
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x28], 0x80000001
jne 0x478b98
mov eax, dword [esp + 0x30]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x94]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
sub eax, edx
cmp esi, eax
jne 0x478bf9
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
sub eax, ecx
cmp dword [esp + 0x14], eax
jne 0x478bf9
mov eax, dword [esp + 0x1c]
cmp eax, 0x80000000
je 0x478be2
cmp eax, edx
jne 0x478bf9
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
je 0x478c84
cmp eax, ecx
je 0x478c84
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x478c11
push 9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [0x4f78e4]
xor ecx, ecx
mov dword [esp + 0x30], eax
test edx, edx
jle 0x478c4b
mov eax, dword [0x4f78e0]
nop
mov esi, dword [eax + ecx*4]
mov edx, dword [esp + 0x30]
cmp dword [esi + 4], edx
mov edx, dword [0x4f78e4]
je 0x478cf2
inc ecx
cmp ecx, edx
jl 0x478c30
push dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
push dword [esp + 0x18]
cmove eax, dword [esp + 0x8c]
push dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x80000000
cmove eax, dword [esp + 0x90]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [edi + 0xc3], 0
je 0x478e70
lea eax, [esp + 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x48]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, ecx
mov esi, dword [esp + 0x50]
sub eax, esi
sub edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, edx
sub eax, dword [esp + 0x54]
cmp dword [edi + 0xb0], 0x80000001
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
jne 0x478dcc
mov dword [edi + 0xb0], ecx
jmp 0x478de2
test esi, esi
je 0x478c4b
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
mov dword [esp + 0x30], edx
cmp edx, dword [esi + 0x10]
jb 0x478d40
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x48], eax
test eax, eax
je 0x478d33
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edx, [eax - 3]
jmp 0x478d37
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 0x10]
jae 0x478c4b
mov eax, dword [esp + 0x48]
mov ecx, edx
shl ecx, 6
add ecx, dword [esi + 0x18]
cmp dword [ecx], eax
jne 0x478c4b
cmp edx, 0x2af8
je 0x478c4b
test ecx, ecx
je 0x478c4b
cmp byte [edi + 0xc3], 0
jne 0x478c4b
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movlpd qword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
jne 0x478da2
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x80000000
jne 0x478db9
mov ecx, dword [esp + 0x80]
sub ecx, dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
push ecx
jmp 0x478c7b
cmp dword [edi + 0xb0], 0x80000000
je 0x478de2
add dword [edi + 0xb0], eax
mov esi, dword [esp + 0x50]
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x478df7
mov dword [edi + 0xb4], edx
jmp 0x478e0c
cmp eax, 0x80000000
je 0x478e0c
add eax, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0xb8]
cmp eax, 0x80000001
jne 0x478e21
mov dword [edi + 0xb8], ecx
jmp 0x478e32
cmp eax, 0x80000000
je 0x478e32
add eax, dword [esp + 0x2c]
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0xbc]
cmp eax, 0x80000001
jne 0x478e47
mov dword [edi + 0xbc], edx
jmp 0x478e58
cmp eax, 0x80000000
je 0x478e58
add eax, dword [esp + 0x30]
mov dword [edi + 0xbc], eax
sub esi, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [edi + 0xa8], esi
mov dword [edi + 0xac], eax
cmp byte [esp + 0x27], 0
jne 0x478ea8
mov eax, dword [esp + 0x20]
cmp eax, 6
jne 0x478e9e
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x478e9a
push 0
push 0
push 6
push esi
call dword [sym.imp.USER32.dll_DefDlgProcW]
mov eax, dword [esp + 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 8
ja case.0x478ebd.2
movzx eax, byte [eax + 0x479064]
jmp dword [eax*4 + 0x47905c]
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [edi + 4]
jne case.0x478ebd.2
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp esi, eax
je 0x478eec
mov ecx, esi
call fcn.00496dd0
cmp byte [edi + 0xc4], 0
je case.0x478ebd.2
mov byte [edi + 0xc4], 0
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x478f89
cmp byte [edi + 0xc0], 0
je case.0x478ebd.2
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x478f44
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
je 0x478f48
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov edx, dword [esp + 0x1c]
cmp esi, dword [edi + 0x10]
jae case.0x478ebd.2
mov eax, dword [edi + 0x18]
mov ecx, esi
shl ecx, 6
add eax, ecx
mov dword [esp + 0x2c], eax
cmp dword [eax], edx
jne case.0x478ebd.2
cmp esi, 0x2af8
je case.0x478ebd.2
test eax, eax
je case.0x478ebd.2
cmp byte [eax + 4], 0x13
jne case.0x478ebd.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [esp + 0x30]
mov ecx, edi
call fcn.0047d760
jmp case.0x478ebd.2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, 1
mov byte [edi + 0xc3], 0
or ecx, 0xffffffff
mov byte [edi + 0xc5], 0
call fcn.00401890
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8