Function at 0x10041190
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10056172
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x100782d8]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100782d8]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov edi, dword [esp + 0x264]
xor ebx, ebx
cmp dword [0x1007c178], ebx
jne 0x100411e6
mov dword [0x1007c178], 1
cmp dword [0x1007c17c], ebx
jne 0x100411f8
mov dword [0x1007c17c], 1
push 0x43d
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x1007c178]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push ebx
push eax
push 0x539
push edi
call esi
mov ecx, dword [0x1007c17c]
push ebx
push ecx
push 0x53a
push edi
call esi
call fcn.10033080
push eax
push str.__wnblzhuihun_d.ini
push 0xff
lea edx, [esp + 0x15c]
push 0xff
push edx
call fcn.10043641
add esp, 0x14
lea eax, [esp + 0x150]
push eax
push ebx
push str.zhuihunnum
push str.zhuihun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
xor ebp, ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x100413e5
push ebp
push str.zh_d
push 0x14
lea ecx, [esp + 0x48]
push 0x14
push ecx
call fcn.10043641
add esp, 0x14
lea edx, [esp + 0x150]
push edx
push 0xff
lea eax, [esp + 0x58]
push eax
push 0x100582d1
lea ecx, [esp + 0x4c]
push ecx
push str.zhuihun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x50], bl
je 0x100413da
lea eax, [esp + 0x50]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100412e5
sub eax, edx
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x28]
call fcn.10016370
mov eax, dword [0x1007d258]
lea ecx, [eax + 1]
mov eax, dword [0x1007d250]
cmp eax, ecx
mov dword [esp + 0x25c], ebx
ja 0x10041328
push 1
mov ecx, 0x1007d248
call fcn.10040cd0
mov eax, dword [0x1007d250]
mov edx, dword [0x1007d254]
mov ecx, dword [0x1007d258]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x1004133d
sub esi, eax
mov edx, dword [0x1007d24c]
cmp dword [edx + esi*4], ebx
jne 0x1004135b
push 0x1c
call fcn.10044763
mov ecx, dword [0x1007d24c]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [0x1007d24c]
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
cmp ecx, ebx
mov byte [esp + 0x25c], 1
je 0x10041392
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.10016170
add dword [0x1007d258], 1
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x25c], 0xffffffff
jb 0x100413b8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10044219
add esp, 4
push 0x52f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x50]
push edx
push ebx
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x14]
add ebp, 1
cmp ebp, esi
jl 0x10041286
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 1
push 0xf1
push 0x400
push edi
call ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x1007f01c]
cmp eax, ebx
je 0x10041415
cmp eax, 1
je 0x10041415
cmp eax, 4
jne 0x10041442
push 1
push 0x528
push edi
call ebp
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 1
push 0x52c
push edi
call ebp
push eax
call esi
push 1
push 0x52d
push edi
call ebp
push eax
call esi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.1004309b
add esp, 0x24c
ret 4