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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481b88
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x49e0b0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x49e0b0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, 0x4862b4
push esi
push dword [ebx + 4]
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
add ebx, 0x14
push str.lblTitle
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x3c]
lea eax, [esp + 0x74]
push eax
call fcn.004142b2
and dword [esp + 0xa4], 0
mov eax, ebx
mov dword [esp], str.lblClientVer
call fcn.0043226c
cmp dword [esp + 0x8c], 8
mov ecx, dword [esp + 0x78]
jae 0x4020d1
lea ecx, [esp + 0x78]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x3c]
lea ecx, [esp + 0x58]
call fcn.00401c26
push str.lblRuleUptime
mov eax, ebx
mov byte [esp + 0xa4], 1
call fcn.0043226c
cmp dword [esp + 0x70], 8
mov ecx, dword [esp + 0x5c]
jae 0x402105
lea ecx, [esp + 0x5c]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x3c]
push str.conServAddr
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
mov edi, str.conNormal
push edi
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
mov esi, str.conOffline
push esi
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
push str.conOfflineState
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
push str.btnOfflineReqCode
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
push edi
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
push esi
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
push str.lblCid
mov eax, ebx
call fcn.0043226c
mov esi, eax
lea eax, [esp + 0x3c]
push eax
call fcn.004137e3
pop ecx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xa8], 2
call fcn.0040126f
pop ecx
pop ecx
mov byte [esp + 0xa0], 3
cmp dword [eax + 0x18], 8
jb 0x4021f0
mov eax, dword [eax + 4]
jmp 0x4021f3
add eax, 4
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x3c]
push 0
push 1
lea esi, [esp + 0x28]
call fcn.00404960
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xa8], 1
call fcn.00404863
push str.AllowViewRules
push str.Softwareprojonepodlp_smprule_
mov dword [esp + 0x24], esi
call fcn.004114af
test eax, eax
je 0x402271
call fcn.0040e81d
test al, al
je 0x402271
push 0x4860cc
lea eax, [esp + 0x5c]
call fcn.00405dc5
pop ecx
test al, al
jne 0x402271
push str.btnViewRule
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
mov dword [esp + 0x1c], 1
call fcn.004144c8
test eax, eax
je 0x402381
cmp dword [ebp + 0xc], esi
je 0x4022d2
xor eax, eax
mov dword [esp + 0x20], esi
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
sub eax, 0x28
mov dword [esp + 0x2c], eax
sub eax, dword [esp + 0x24]
push 2
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor esi, esi
mov edi, str.conNormal
push str.conDepAndName
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xe0]
push str.btnImportRule
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
cmp dword [esp + 0x1c], esi
je 0x40232c
push str.lblRuleUptime
mov eax, ebx
call fcn.0043226c
mov esi, dword [eax]
mov ecx, eax
mov dword [esp + 0x14], eax
call dword [esi + 0x7c]
mov ecx, dword [esp + 0x14]
add eax, 0x18
push eax
call dword [esi + 0x80]
mov eax, dword [esp + 0x18]
mov esi, 0x4863a4
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push str.lblTitle
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x3c]
push edi
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0xe0]
mov ecx, dword [esp + 0x18]
xor esi, esi
inc esi
mov dword [ecx + 0x4bc], esi
call fcn.004024eb
push 0
push esi
jmp 0x4024af
mov eax, dword [esp + 0x18]
push esi
push 0x3e8
push 0x124
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push str.ruleCleaned
push 0x486008
call fcn.004114af
mov dword [esp + 0x14], 0x486110
test eax, eax
jne 0x4023bc
mov dword [esp + 0x14], 0x48611c
push str.btnClearRules
mov eax, ebx
call fcn.0043226c
push dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x3c]
push str.conOffline
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xe0]
push str.conOfflineState
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xe0]
push edi
mov eax, ebx
call fcn.0043226c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xe0]
mov edi, dword [esp + 0x18]
push edi
call fcn.004034db
test al, al
jne 0x402439
push esi
push 0x3e8
push 0x123
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40249b
push str.btnImportRule
mov eax, ebx
call fcn.0043226c
mov edi, dword [eax]
mov dword [esp + 0x14], eax
add edi, 0xe0
call fcn.004139e2
mov ecx, dword [esp + 0x14]
neg eax
sbb al, al
inc al
movzx eax, al
push eax
call dword [edi]
call fcn.004139e2
test eax, eax
jne 0x402473
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 1
jne 0x40249b
push str.lblRuleUptime
mov eax, ebx
call fcn.0043226c
mov ebx, eax
mov edi, dword [ebx]
mov ecx, ebx
call dword [edi + 0x7c]
add eax, 0x18
push eax
mov ecx, ebx
call dword [edi + 0x80]
push 2
call fcn.00419cbe
pop ecx
mov ecx, dword [esp + 0x18]
call fcn.004026f3
push esi
push 1
lea esi, [esp + 0x60]
call fcn.00404960
push 0
push 1
lea esi, [esp + 0x7c]
call fcn.00404960
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00464d54
mov esp, ebp
pop ebp
ret 8