Function at 0x492810
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d173c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
mov ebp, dword [esp + 0xec]
push esi
push edi
mov edi, dword [esp + 0xf0]
test edi, edi
je 0x492fd1
cmp dword [ebp + 8], 0
je 0x492fd1
push str.g
push 0x42f
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 1
push 0x1002
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x49294a
push 1
push 5
push 0x4ed2a8
mov esi, edi
push esi
mov eax, 0x30
call fcn.0043efa0
push 0x10
push 0x10
push 0x1036
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xa
push 2
push 0xfe
push 0x32
call esi
push eax
push 0x31
call esi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 5
mov esi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0x10
push 0x10
push 1
push 0x6b
push 0
call ebx
mov ebp, dword [sym.imp.USER32.dll_LoadImageW]
push eax
call ebp
push 0
push 0x10
push 0x10
push 1
push 0x6a
push 0
mov edi, eax
call ebx
push eax
call ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push edi
push 0xffffffffffffffff
push esi
mov ebx, eax
call ebp
push ebx
push 0xffffffffffffffff
push esi
call ebp
mov eax, dword [esp + 0xf0]
push esi
push 1
push 0x1003
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
push edi
call esi
push ebx
call esi
mov edi, dword [esp + 0xf0]
mov ebp, dword [esp + 0xf4]
push 0x30
call fcn.0049e995
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
xor ebx, ebx
mov dword [esp + 0xe8], ebx
cmp esi, ebx
je 0x492972
lea ecx, [esi + 8]
push ecx
call fcn.00493d60
jmp 0x492974
xor esi, esi
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0xffffffffffffffeb
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 4], eax
mov dword [esi], edi
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push 0xffffffffffffffeb
push edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 2
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 0x508]
call fcn.00457040
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x28]
sub esp, 0x28
mov ecx, esp
mov dword [ecx], 0
movzx ecx, ax
lea edx, [esi + 8]
mov dword [esp + 0x54], esp
call fcn.004945b0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x28]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x14], ebx
cmp dx, cx
jae 0x492f57
mov dword [esp + 0x30], edx
movzx ecx, word [eax + 0x28]
cmp ebx, ecx
jae 0x492f3e
mov eax, dword [eax + ebx*4 + 0x34]
mov dword [esp + 0x20], eax
test eax, eax
je 0x492f3e
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0xe8], 1
mov dword [esp + 0x1c], edi
add esi, 8
mov byte [esp + 0xe8], 2
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x492a5c
call fcn.0049f380
mov ebp, dword [esi + 0xc]
add ebp, dword [esp + 0x30]
push 0x44
call fcn.0049e995
add esp, 4
cmp eax, edi
je 0x492a86
mov dword [eax + 4], edi
mov dword [eax + 0x34], edi
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edi
mov dword [eax + 0x40], edi
mov dword [esp + 0x28], eax
jmp 0x492a8a
mov dword [esp + 0x28], edi
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xf4]
lea ecx, [ebx + 0x2c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
mov eax, ebp
call fcn.00492630
lea esi, [ebx + 4]
mov edi, ebp
call fcn.0041f330
mov edx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], edx
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x24], eax
mov edx, dword [ecx + 4]
mov dword [ebx], edx
mov eax, dword [ebp]
test eax, eax
je 0x492ad6
mov ecx, dword [eax + 4]
jmp 0x492ad8
xor ecx, ecx
test ecx, ecx
je 0x492adf
sub ecx, 2
test ecx, 0xfffffffe
je 0x492c3d
test eax, eax
je 0x492af6
add eax, 8
mov esi, eax
jne 0x492afb
mov esi, 0x4d9064
push 0x5c
push esi
call fcn.0049ec5c
add esp, 8
test eax, eax
je 0x492b13
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x492b17
mov dword [esp + 0x18], esi
push 0x4ddcf4
lea ebx, [esp + 0x38]
call fcn.00402bd0
mov eax, dword [esp + 0x20]
mov byte [esp + 0xe8], 3
sub eax, dword [ebp + 0x24]
push 0
push eax
lea eax, [esp + 0x50]
call fcn.00443560
mov esi, eax
mov ecx, dword [esp + 0x18]
push ecx
lea ebx, [esp + 0x50]
mov byte [esp + 0xec], 4
call fcn.00402bd0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x44]
push ecx
push eax
mov byte [esp + 0xf4], 5
call fcn.004907a0
push esi
lea edx, [esp + 0x3c]
push edx
mov bl, 6
push eax
mov byte [esp + 0xf4], bl
call fcn.004907a0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x492b96
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0xe8], bl
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
je 0x492bbd
push eax
mov edi, eax
call esi
test eax, eax
jne 0x492bbd
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0xe8], 5
mov eax, dword [esp + 0x40]
test eax, eax
je 0x492bdf
push eax
mov edi, eax
call esi
test eax, eax
jne 0x492bdf
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0xe8], 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x492c01
push eax
mov edi, eax
call esi
test eax, eax
jne 0x492c01
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0xe8], 3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x492c23
push eax
mov edi, eax
call esi
test eax, eax
jne 0x492c23
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0xe8], 2
mov edi, dword [esp + 0x34]
test edi, edi
je 0x492c8c
push edi
call esi
test eax, eax
jne 0x492c8c
push edi
jmp 0x492c84
mov eax, dword [esp + 0x20]
push 0
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], 0x4de160
call fcn.00443560
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x492c66
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0xe8], 2
mov eax, dword [esp + 0x54]
test eax, eax
je 0x492c8c
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492c8c
push esi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0xf4]
mov eax, dword [ecx + 0xc]
xor edi, edi
mov dword [esp + 0x98], 7
mov dword [esp + 0x9c], bind
mov dword [esp + 0xa0], edi
mov ecx, dword [eax + 0x268]
mov edx, dword [eax + 0x26c]
cmp dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
sbb eax, eax
inc eax
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd8], edx
cdq
push edx
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], edi
call fcn.00443520
mov esi, dword [eax]
mov dword [esp + 0x24], esi
cmp esi, edi
je 0x492d10
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0xe8], 2
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x492d36
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492d36
push ebx
call fcn.0049e96f
add esp, 4
cmp esi, edi
je 0x492d48
lea eax, [esi + 8]
mov dword [esp + 0xac], eax
cmp eax, edi
jne 0x492d53
mov dword [esp + 0xac], 0x4d9064
mov eax, dword [esp + 0xf0]
lea edx, [esp + 0x98]
push edx
push 0
push 0x104d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18]
push ecx
lea ebx, [esp + 0x40]
mov edi, eax
call fcn.00402bd0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x64], 1
test ebx, ebx
je 0x492d9b
lea eax, [ebx + 8]
mov dword [esp + 0x70], eax
test eax, eax
jne 0x492da3
mov dword [esp + 0x70], 0x4d9064
mov eax, dword [esp + 0xf0]
lea edx, [esp + 0x5c]
push edx
push edi
push 0x1074
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x492dd4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492dd4
push ebx
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], 2
test eax, eax
je 0x492ded
add eax, 8
mov dword [esp + 0x70], eax
jne 0x492df5
mov dword [esp + 0x70], 0x4d9064
mov edx, dword [esp + 0xf0]
lea ecx, [esp + 0x5c]
push ecx
push edi
push 0x1074
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x20]
push 0
push eax
lea eax, [esp + 0x34]
call fcn.00443560
mov ebx, eax
mov byte [esp + 0xe8], 0xa
test esi, esi
je 0x492e3f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492e3f
push esi
call fcn.0049e96f
add esp, 4
mov ebx, dword [ebx]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x492e50
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0xe8], 2
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x492e76
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492e76
push esi
call fcn.0049e96f
add esp, 4
mov dword [esp + 0x64], 3
test ebx, ebx
je 0x492e8d
lea eax, [ebx + 8]
mov dword [esp + 0x70], eax
test eax, eax
jne 0x492e95
mov dword [esp + 0x70], 0x4d9064
mov ebx, dword [esp + 0xf0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x5c]
push ecx
push edi
push 0x1074
push ebx
call esi
mov eax, dword [ebp]
mov dword [esp + 0x64], 4
test eax, eax
je 0x492ec4
add eax, 8
jne 0x492ec9
mov eax, 0x4d9064
lea edx, [esp + 0x5c]
push edx
push edi
push 0x1074
push ebx
mov dword [esp + 0x80], eax
call esi
mov byte [esp + 0xe8], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x492f02
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492f02
push esi
call fcn.0049e96f
add esp, 4
mov dword [esp + 0xe8], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x492f2d
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x492f2d
mov eax, dword [esp + 0x24]
push eax
call fcn.0049e96f
add esp, 4
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0xf4]
mov edi, ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x28]
add dword [esp + 0x30], 0x28
inc ebx
cmp ebx, ecx
mov dword [esp + 0x14], ebx
jl 0x492a00
mov edx, dword [ebp + 8]
cmp word [edx + 0x28], 0
je 0x492fa3
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffff
push 1
push 0x101e
push edi
call ebx
push 0xffff
push 2
push 0x101e
push edi
call ebx
push 0xffff
push 3
push 0x101e
push edi
call ebx
push 0xffff
push 4
push 0x101e
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x58]
push eax
push 0
push esi
push 0x4925f0
push 0
push 0
call fcn.004a18e7
mov dword [esi + 0x24], eax
add esp, 0x18
mov al, 1
jmp 0x492fd3
xor al, al
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xdc
ret 8