Function at 0x405f10
Capabilities:
Create process on windows
Inspect load icon resource

Disassembly:
sub ecx, dword [ecx - 4]
jmp 0x498a10
mov eax, 0x112c
call fcn.0051a260
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x1128], eax
mov eax, dword [esp + 0x1130]
push ebx
mov ebx, dword [esp + 0x113c]
push ebp
push esi
mov esi, dword [esp + 0x1140]
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
cmp eax, 0x110
jne 0x498fcc
xor esi, esi
cmp dword [edi - 0x84], esi
jle 0x498a9d
lea esp, [esp]
mov ecx, dword [edi - 0xa0]
mov eax, dword [edi - 0x88]
mov eax, dword [eax + esi*4]
mov edx, dword [ecx + 4]
push 0xffffffffffffffff
push 0
push 0x160c
lea ecx, [edx + edi - 0xa0]
push eax
mov eax, dword [ecx + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, dword [edi - 0x84]
jl 0x498a60
cmp dword [edi - 0x94], 0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x498ad9
mov eax, dword [edi - 0xa0]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi - 0x68]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi - 0x90]
push edx
push ecx
call ebx
mov edx, dword [edi - 0x94]
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
push edx
push eax
call ebp
jmp 0x498adf
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
xor esi, esi
cmp dword [edi - 0x44], esi
jle 0x498b1b
jmp 0x498af0
mov eax, dword [edi - 0x48]
mov ecx, dword [eax + esi*8 + 4]
mov edx, dword [edi - 0xa0]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call ebx
mov edx, dword [edi - 0x48]
mov ecx, dword [edx + esi*8]
push ecx
push eax
call ebp
inc esi
cmp esi, dword [edi - 0x44]
jl 0x498af0
mov eax, dword [edi - 0xa0]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + edi - 0x88]
mov edx, dword [eax + 4]
mov eax, dword [edx + edi - 0x90]
lea ebp, [edi - 0xa0]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi - 0x90]
mov eax, dword [eax + 0xc]
push edx
lea ecx, [eax + edi - 0x58]
call fcn.004975a0
xor eax, eax
cmp dword [edi - 0x6c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jle 0x498c49
mov dword [esp + 0x14], eax
mov esi, dword [edi - 0x70]
add esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, dword [esi]
mov dl, byte [esi + 0xc]
test eax, eax
setne cl
test dl, cl
je 0x498bc5
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
push 0xc
lea ecx, [edx + edi - 0x58]
push eax
mov eax, dword [ecx + 8]
push eax
mov dword [esp + 0x24], ecx
call ebx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00497600
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call ebx
mov dword [esp + 0x18], eax
jmp 0x498be7
mov edx, dword [ebp]
mov ecx, dword [edx + 0xc]
mov edx, dword [ecx + edi - 0x50]
lea ecx, [ecx + edi - 0x58]
push 6
push eax
push edx
mov dword [esp + 0x1c], ecx
call ebx
mov ecx, dword [esp + 0x14]
push eax
call fcn.00497600
cmp dword [esi + 8], 0
je 0x498c2b
mov ecx, dword [esi]
test ecx, ecx
je 0x498c2b
mov eax, dword [ebp]
mov edx, dword [eax + 4]
lea eax, [edx + edi - 0xa0]
mov eax, dword [eax + 0x10]
push 5
push ecx
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [ecx + edi - 0x90]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc eax
cmp eax, dword [edi - 0x6c]
mov dword [esp + 0x1c], eax
jl 0x498b74
cmp dword [esp + 0x18], 0
jne 0x498caa
mov eax, dword [edi - 0x9c]
mov ecx, dword [edi - 0x90]
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call fcn.004b7f50
mov edx, dword [ebp]
mov ecx, dword [edx + 0xc]
mov eax, dword [edi - 0x90]
mov edx, dword [ecx + edi - 0x50]
add esp, 0xc
push 0xc
lea esi, [ecx + edi - 0x58]
push eax
push edx
call ebx
push eax
mov ecx, esi
call fcn.00497600
mov eax, dword [edi - 0x90]
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + edi - 0x90]
push eax
call ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + edi - 0x80], 0
je 0x498cd4
mov edx, ecx
mov ecx, dword [edx + edi - 0x80]
lea eax, [edx + edi]
lea esi, [eax - 0x58]
mov eax, dword [esi + 8]
push 6
push ecx
push eax
call ebx
push eax
mov ecx, esi
call fcn.00497600
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi - 0x90]
push ebp
push 0x497e20
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [edi - 0x58], 0
jl 0x498d11
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
mov ebx, dword [edx + edi - 0x90]
lea esi, [edi - 0x5c]
call fcn.00496790
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x498d5f
mov eax, dword [edi - 0x64]
test eax, eax
jge 0x498d3e
mov eax, dword [ebp]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edi - 0x9c]
lea eax, [ecx + edi - 0xa0]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 0x14]
push edx
call fcn.00495820
add esp, 4
jmp 0x498d5f
mov ecx, dword [edi - 0x60]
mov edx, dword [ebp]
push 1
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi - 0x90]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
push 2
push edx
lea ecx, [ecx + edi - 0xa0]
call fcn.004970a0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, dword [eax + edi - 0x9c]
mov edx, dword [ecx + 4]
lea eax, [eax + edi - 0xa0]
mov eax, dword [edx + eax + 0x14]
push eax
call fcn.00495890
mov eax, dword [edi - 0x8c]
add esp, 4
test eax, eax
je 0x498e2a
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + edi - 0x90]
push eax
call ebx
xor ecx, ecx
cmp byte [edi - 0x4c], cl
push 0
setne cl
mov esi, eax
push ecx
push 0xf1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi - 0x98]
test eax, eax
je 0x498de6
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi - 0x90]
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
push 2
lea eax, [esp + 0x24]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp]
mov ecx, dword [eax + 0xc]
add edx, 7
mov dword [ecx + edi - 0x78], edx
jmp 0x498e76
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + edi - 0x80]
mov edx, dword [eax + 4]
mov eax, dword [edx + edi - 0x90]
push ecx
push eax
call ebx
test eax, eax
je 0x498e76
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
lea esi, [edx + edi - 0x7c]
mov edx, dword [ecx + edi - 0x90]
push esi
push eax
mov dword [esp + 0x18], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
push 2
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [edi - 0x34]
test eax, eax
je 0x498e93
push eax
lea ecx, [edi - 0x2c]
call fcn.004b9f80
push 0
push 0
push 0
mov ecx, ebp
call fcn.00497ec0
mov eax, dword [edi - 0x74]
test eax, eax
je 0x498fb1
cmp dword [edi - 0x78], 0
je 0x498fb1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [edi - 0x78]
mov edx, dword [ebp]
mov dword [edi - 0x7c], eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call ebx
test eax, eax
je 0x498fb1
mov edx, dword [ebp]
mov ecx, dword [edx + 4]
mov esi, dword [ecx + edi - 0x90]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x24]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
mov esi, dword [esp + 0x24]
sub esi, dword [edx + edi - 0x78]
add esi, dword [esp + 0x2c]
test esi, esi
jle 0x498fb1
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + edi - 0x90]
lea eax, [esp + 0x30]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 2
sub ecx, eax
add ecx, esi
push ecx
mov ecx, dword [esp + 0x38]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi - 0x90]
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edi - 0x80]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi - 0x90]
push edx
push ecx
call ebx
test eax, eax
je 0x498fb1
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx + edi - 0x90]
lea esi, [edx + edi - 0x7c]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
push esi
push ebx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi - 0x90]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49924c
cmp eax, 5
jne 0x498ff2
mov ecx, dword [edi - 0xa0]
mov edx, ebx
shr edx, 0x10
push edx
mov edx, dword [ecx + 0xc]
movzx eax, bx
ret
push eax
lea ecx, [edx + edi - 0x58]
call fcn.00495cb0
jmp 0x49924c
cmp eax, 0x111
jne 0x49908e
cmp byte [edi - 0x4b], 0
movzx esi, si
je 0x49900f
cmp esi, 2
je 0x49924c
mov eax, dword [edi - 0x8c]
cmp esi, eax
je 0x49924c
test eax, eax
je 0x499052
push 0
push 0
push 0xf0
push eax
mov eax, dword [edi - 0xa0]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi - 0x90]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
sete al
mov byte [edi - 0x4c], al
mov eax, dword [edi - 0x30]
test eax, eax
je 0x499071
mov ecx, dword [edi - 0xa0]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + edi - 0x90]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi - 0xa0]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi - 0x90]
push esi
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x49924c
cmp eax, 2
jne 0x4990c2
mov edx, dword [edi - 0xa0]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [edi - 0x64], edx
mov dword [edi - 0x60], eax
jmp 0x49924c
cmp eax, 0xf
jne 0x499140
cmp dword [edi - 0x7c], 0
je 0x49924c
test esi, esi
je 0x4990d9
mov eax, esi
jmp 0x4990f5
mov edx, dword [edi - 0xa0]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edx, dword [edi - 0x78]
mov ecx, dword [edi - 0x7c]
push edx
mov edx, dword [edi - 0xa0]
push ecx
push eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + edi - 0x90]
push ecx
call fcn.00496390
add esp, 0x10
test esi, esi
jne 0x49924c
mov eax, dword [edi - 0xa0]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x40]
push edx
mov edx, dword [ecx + edi - 0x90]
push edx
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x49924c
cmp eax, 0x4e
jne 0x49924c
xor eax, eax
cmp dword [edi - 0x6c], eax
mov dword [esp + 0x1c], eax
jle 0x49924c
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], eax
mov esi, dword [edi - 0x70]
add esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
jne 0x499235
cmp dword [ebx + 8], 0xfffffffe
jne 0x499235
mov eax, dword [esi + 4]
test eax, eax
je 0x499235
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4991aa
mov edx, dword [edi - 0xa0]
mov eax, dword [edx + 4]
mov edx, dword [eax + edi - 0x90]
push esi
push edx
call ecx
add esp, 8
jmp 0x4991cd
push 5
push 0
push 0
push eax
mov eax, dword [edi - 0xa0]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi - 0x90]
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x499235
push 0x10b4
lea eax, [esp + 0x88]
push 0
push eax
call fcn.00519500
mov ecx, dword [esi]
mov edx, dword [edi - 0xa0]
mov eax, 4
add esp, 0xc
mov dword [esp + 0x80], 2
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + edi - 0x90]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [ebx]
lea edx, [esp + 0x80]
push edx
push 0
push 0x702
push eax
call ebp
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc eax
cmp eax, dword [edi - 0x6c]
mov dword [esp + 0x1c], eax
jl 0x499162
mov ecx, dword [esp + 0x1138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0051916c
add esp, 0x112c
ret 0xc