Function at 0x4a1db0
Capabilities:
Hide graphical window
Print debug messages
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x60d51d
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x27c]
mov eax, dword [ebp + 4]
push 0x51c
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x4c]
push edx
push eax
call esi
test eax, eax
je 0x4a1e2d
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x54]
push ecx
push edx
call esi
xor edi, edi
cmp dword [ebp + 0x1aec], edi
je 0x4a1e3f
push 1
push ebp
call fcn.004a3a10
push ebp
call fcn.004a09f0
cmp dword [ebp + 0x1f8c], edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x4a245b
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x6244e0
mov dword [ebp + 0x1180], edi
call fcn.00409dd0
lea eax, [ebp + 0x1f94]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.FrameConfig.ini
mov dword [esp + 0x27c], edi
call fcn.0040aab0
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x274], 1
call fcn.0040ab90
mov byte [esp + 0x274], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a1ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x206
lea ecx, [esp + 0x62]
push 0
push ecx
mov word [esp + 0x68], 0
call fcn.005da970
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push edx
push 0x104
lea eax, [esp + 0x64]
push eax
push 0x6244e0
push str.QQShowWithBkgPath
push str.cand
call edi
lea ecx, [esp + 0x5c]
lea eax, [ebp + 0x233c]
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x4a1f13
sub ecx, edx
sar ecx, 1
lea edx, [esp + 0x5c]
push edx
mov ebx, ecx
call fcn.004037a0
mov eax, dword [esp + 0x1c]
push eax
push 0x104
lea ecx, [esp + 0x64]
push ecx
push 0x6244e0
push str.QQShowWithoutBkgPath
push str.cand
call edi
lea ecx, [esp + 0x5c]
lea eax, [ebp + 0x2344]
lea edx, [ecx + 2]
jmp 0x4a1f60
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x4a1f60
sub ecx, edx
sar ecx, 1
lea edx, [esp + 0x5c]
push edx
mov ebx, ecx
call fcn.004037a0
mov eax, dword [esp + 0x1c]
push eax
push 0x104
lea ecx, [esp + 0x64]
push ecx
push 0x6244e0
push str.QQShow
push str.cand
call edi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x60]
call fcn.00409dd0
mov byte [esp + 0x274], 2
mov eax, dword [esp + 0x44]
push eax
call fcn.005d3c34
add esp, 4
cmp eax, 1
push 0
jne 0x4a2102
mov ecx, dword [ebp + 0x2338]
push eax
push 0xf1
push ecx
call esi
push 5
mov edx, dword [ebp + 0x2338]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x208
lea eax, [esp + 0x60]
push 0
push eax
call fcn.005da970
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push 0x104
lea edx, [esp + 0x64]
push edx
push 0x6244e0
push str.rawpic
push str.cand
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
call fcn.00409dd0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ebx, [ebp + 0x1f94]
mov byte [esp + 0x27c], 3
call fcn.0041eb50
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x4a2129
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push ecx
mov ecx, esp
lea edx, [esp + 0x24]
mov dword [esp + 0x4c], esp
push edx
push ecx
lea ebx, [ebp + 0x1f94]
call fcn.0041eb50
add esp, 8
push ebp
call fcn.004a0f50
lea eax, [esp + 0x14]
push str.Cand:_Load
push eax
lea ecx, [esp + 0x20]
call fcn.00453450
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a23de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a23de
cmp eax, 2
jne 0x4a1fda
mov eax, dword [ebp + 0x2338]
push 0
push 0xf1
push eax
call esi
mov ecx, dword [ebp + 0x2338]
push 5
push ecx
jmp 0x4a1fe1
push 0x208
lea ecx, [esp + 0x60]
push 0
push ecx
call fcn.005da970
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push 0x104
lea eax, [esp + 0x64]
push eax
push 0x6244e0
push str.photo
push str.cand
call edi
lea edx, [esp + 0x5c]
lea edi, [esp + 0x18]
call fcn.00403760
mov ecx, edi
push ecx
lea edx, [esp + 0x18]
push edx
lea ebx, [ebp + 0x1f94]
call fcn.0041eb50
mov eax, dword [eax]
add esp, 8
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call esi
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a21b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x4a21f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push ecx
mov ecx, esp
lea edx, [esp + 0x24]
mov dword [esp + 0x4c], esp
push edx
push ecx
lea ebx, [ebp + 0x1f94]
call fcn.0041eb50
add esp, 8
lea eax, [ebp + 0x1054]
push eax
call fcn.004a5030
jmp 0x4a23de
cmp dword [ebp + 0x1174], 0
mov ecx, dword [ebp + 0x1100]
mov edx, dword [ebp + 0x1104]
mov eax, dword [ebp + 0x1108]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x110c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
je 0x4a2382
cmp dword [ebp + 0x1194], 0
je 0x4a22c2
mov eax, 0x10
lea ecx, [esp + 0x20]
lea edx, [ebp + 0x1198]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4a225b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4a2243
test eax, eax
je 0x4a22b8
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x4a22aa
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a22b8
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x4a22aa
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a22b8
movzx esi, byte [ecx]
movzx edi, byte [edx]
sub edi, esi
jne 0x4a22aa
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4a22b8
movzx eax, byte [ecx]
movzx edi, byte [edx]
sub edi, eax
je 0x4a22b8
test edi, edi
mov eax, 1
jg 0x4a22ba
or eax, 0xffffffff
jmp 0x4a22ba
xor eax, eax
test eax, eax
je 0x4a2382
push str.Cand:_Inherit
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp + 0x11d0]
sub edi, dword [ebp + 0x11c8]
mov ecx, dword [ebp + 0x1108]
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
mov edi, dword [ebp + 0x11cc]
sub edi, dword [ebp + 0x11c4]
mov eax, dword [ebp + 0x110c]
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
mov edx, dword [ebp + 0x1100]
mov esi, dword [ebp + 0x1104]
fdivp st(1)
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
sub eax, esi
sub ecx, edx
cmp ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
fstp dword [esp + 0x14]
jle 0x4a235c
fild dword [esp + 0x48]
fdiv dword [esp + 0x14]
fiadd dword [esp + 0x20]
call fcn.005f4400
mov dword [esp + 0x28], eax
lea esi, [ebp + 0x1054]
lea eax, [esp + 0x20]
call fcn.004a5c00
jmp 0x4a23de
fild dword [esp + 0x40]
fmul dword [esp + 0x14]
fiadd dword [esp + 0x24]
call fcn.005f4400
mov dword [esp + 0x2c], eax
lea esi, [ebp + 0x1054]
lea eax, [esp + 0x20]
call fcn.004a5c00
jmp 0x4a23de
mov eax, dword [ebp + 0x11d8]
test eax, eax
je 0x4a23de
call fcn.0057af50
test eax, eax
je 0x4a23de
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.004a3260
test eax, eax
je 0x4a23de
push str.Cand:_Load_Default
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
lea edi, [ebp + 0x1054]
call fcn.004a5200
lea eax, [ebp + 0x1184]
mov ecx, edi
call fcn.0049d060
mov dword [ebp + 0x1180], 1
mov byte [esp + 0x274], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a2406
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x274], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a242e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a2470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a2470
push edi
push 1
push edi
push ebp
call fcn.004a3460
push str.Cand:_Load_Tmp_Pic
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x274], 4
xor eax, eax
cmp dword [ebp + 0x11d8], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
je 0x4a274c
mov ecx, dword [ebp + 0x11ac]
push edi
push edi
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4a2695
mov edx, dword [ebp + 0x11d8]
push edi
push edx
lea eax, [esp + 0x38]
call fcn.0057ac50
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x4a2699
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
je 0x4a2699
xor ebx, ebx
cmp eax, edi
je 0x4a2699
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jae 0x4a2699
cmp dword [ebp + 0x1ad4], edi
je 0x4a25c6
mov edi, ebx
lea esi, [esp + 0x30]
call fcn.0057a830
mov edx, dword [eax]
cmp dword [edx + 4], 3
jne 0x4a25c2
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
call fcn.0057a830
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
lea eax, [ebp + 0x1054]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], esi
call fcn.0049d030
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov dword [ebp + 0x11c4], eax
mov dword [ebp + 0x11c8], ecx
mov dword [ebp + 0x11cc], edi
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x11d0], esi
call fcn.00403890
push esi
push edi
push 0x63157c
lea edi, [esp + 0x28]
mov byte [esp + 0x280], 5
call fcn.0040ac80
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x52a
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, edi
jmp 0x4a267a
mov eax, dword [esp + 0x34]
cmp dword [ebp + 0x1ad4], 0
jne 0x4a268b
mov edi, ebx
lea esi, [esp + 0x30]
call fcn.0057a830
mov edx, dword [eax]
cmp dword [edx + 4], 1
jne 0x4a2687
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
call fcn.0057a830
mov edx, dword [eax]
mov esi, dword [edx + 0xc]
lea eax, [ebp + 0x1054]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], esi
call fcn.0049d030
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov dword [ebp + 0x11c4], eax
mov dword [ebp + 0x11c8], ecx
mov dword [ebp + 0x11cc], edi
lea ecx, [esp + 0x18]
mov dword [ebp + 0x11d0], esi
call fcn.00403890
push esi
push edi
push 0x63157c
lea edi, [esp + 0x24]
mov byte [esp + 0x280], 6
call fcn.0040ac80
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x52a
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, edi
mov byte [esp + 0x274], 4
call fcn.00403870
mov eax, dword [esp + 0x34]
add ebx, 1
xor edi, edi
jmp 0x4a24f1
mov eax, dword [esp + 0x34]
xor ebx, ebx
jmp 0x4a26a0
cmp eax, edi
jne 0x4a26a8
xor ecx, ecx
jmp 0x4a26b1
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jge 0x4a2743
cmp eax, edi
je 0x4a26ca
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x4a26d3
call fcn.005d29f1
mov eax, dword [esp + 0x34]
cmp dword [eax + ebx*4], edi
je 0x4a273b
cmp eax, edi
je 0x4a26e9
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x4a26f2
call fcn.005d29f1
mov eax, dword [esp + 0x34]
mov esi, dword [eax + ebx*4]
cmp esi, edi
je 0x4a271a
mov eax, dword [esi]
cmp eax, edi
je 0x4a270a
push eax
call fcn.005d28c2
add esp, 4
mov dword [esi], edi
push esi
mov dword [esi + 0x30], edi
call fcn.005d2367
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, edi
je 0x4a272b
mov ecx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x4a2734
call fcn.005d29f1
mov eax, dword [esp + 0x34]
mov dword [eax + ebx*4], edi
mov eax, dword [esp + 0x34]
add ebx, 1
jmp 0x4a26a0
lea eax, [esp + 0x30]
call fcn.004fc8d0
push ebp
call fcn.004a0470
mov eax, dword [ebp + 4]
push edi
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x4a2773
push eax
call fcn.005d2367
add esp, 4
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.005d28b3
add esp, 0x264
ret 4