Function at 0x423480
Capabilities:
Check if file exists
Inspect section memory permissions
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462dc7
push eax
mov dword fs:[0], esp
sub esp, 0xc90
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xfffffffffffffff0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
and ebx, 0x40000000
je 0x4234c5
mov ecx, dword [esi + 4]
push ecx
call ebp
jmp 0x4234d1
mov edx, dword [esi + 4]
push 4
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [esi + 4]
mov edi, eax
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
jne 0x42354e
test edi, edi
je 0x423509
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x423507
test eax, 0x20000000
je 0x423509
xor edi, edi
lea edx, [esp + 0x48]
push 0
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test edi, edi
jne 0x423540
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
jmp 0x423575
lea ecx, [esp + 0x58]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x423575
mov edx, dword [esi + 4]
push edx
call ebp
mov ebp, eax
lea eax, [esp + 0x48]
push eax
push ebp
call ebx
lea ecx, [esp + 0x58]
push ecx
push edi
call ebx
lea edx, [esp + 0x58]
push 2
push edx
push ebp
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
add eax, ecx
sub ebx, edx
cdq
sub eax, edx
sub ebp, edi
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x64]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x5c]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ebx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x48]
cmp ecx, eax
jge 0x4235c9
mov ecx, eax
jmp 0x4235d8
mov eax, dword [esp + 0x50]
lea edx, [ecx + ebp]
cmp edx, eax
jle 0x4235d8
sub eax, ebp
mov ecx, eax
mov eax, dword [esp + 0x4c]
cmp edi, eax
jl 0x4235ed
mov eax, dword [esp + 0x54]
lea edx, [edi + ebx]
cmp edx, eax
jle 0x4235ef
sub eax, ebx
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
xor ebx, ebx
push ecx
push ebx
push eax
call edi
mov ecx, dword [esi + 4]
push 2
push 0x149
push 0x1ca
push ebx
push ebx
push ebx
push ecx
call edi
sub esp, 0x10
mov eax, 0xd7
mov ebp, esp
mov ecx, 0x15
mov edx, 0x45
mov edi, 7
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.00421500
push 1
push 1
push 0x21
push 0x22
push 0xd2
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebp, eax
mov dword [esp + 0x20], ebx
push ecx
lea ecx, [esp + 0x24]
mov eax, esp
mov dword [esp + 0xcac], ebx
mov dword [esp + 0x14], esp
mov dword [eax], 0xfc
call fcn.0040bc30
mov edx, dword [esp + 0x20]
push 0xff00ff
push edx
push ebp
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
je 0x4236a1
mov dword [esp + 0x20], ebx
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [esi + 0x808]
push eax
mov ecx, edi
call fcn.0040cf30
cmp eax, ebx
je 0x4236c6
mov ecx, edi
call fcn.0040c7d0
mov dword [edi + 0x24], ebp
mov al, byte [edi + 0x20]
test al, 8
je 0x4236e5
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4236e5
mov ecx, edi
call fcn.0040c570
mov ebp, 2
mov eax, 1
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ebp
mov dword [edi + 0x20], eax
mov eax, dword [esi + 4]
push 0xc9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [esi + 0x7c0]
push eax
mov ecx, edi
call fcn.0040cf30
cmp eax, ebx
je 0x423726
mov ecx, edi
call fcn.0040c7d0
mov eax, dword [esi + 0xaa0]
mov dword [edi + 0x24], eax
mov al, byte [edi + 0x20]
test al, 8
je 0x42374b
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42374b
mov ecx, edi
call fcn.0040c570
mov eax, 1
mov dword [edi + 0x28], ebx
push eax
push ebx
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ebp
push ebx
mov dword [edi + 0x20], eax
mov edx, dword [esi + 0x7c4]
push 5
push 0x1b2
push ebx
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 1
push 0x21
push 0x20
push 0x20
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi + 0xa50], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ebx
push eax
push ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0xa54]
add edx, 0x8c
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4237e5
mov eax, dword [esi + 0xa54]
add eax, 0x8c
push eax
call fcn.00401f00
mov ecx, dword [esi + 0xa50]
add esp, 4
mov edi, eax
push edi
push 0xffffffffffffffff
push ecx
jmp 0x4237ff
mov edx, dword [esi + 0xa54]
mov ecx, esi
push edx
call fcn.0041b130
mov edi, eax
mov eax, dword [esi + 0xa50]
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [esi + 4]
push 0xcc
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi + 0x888]
lea ebp, [esi + 0x888]
push ebp
mov ecx, ebp
mov dword [esp + 0x14], eax
lea edi, [ebp + 8]
call dword [edx + 4]
push eax
mov ecx, edi
call fcn.0040bc80
push edi
mov edi, dword [esp + 0x14]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp eax, ebx
je 0x423854
mov dword [ebp + 0x1c], eax
mov dword [ebp + 4], edi
push 0xfffffffffffffff2
push 1
push 0xffff
mov ecx, ebp
call fcn.0042b010
mov edi, dword [esi + 0xa54]
mov eax, dword [0x46f42c]
add edi, 0x64
mov dword [esp + 0x18], eax
je 0x4238cb
mov ecx, edi
shr ecx, 0x10
jne 0x423891
and edi, 0xffff
lea ecx, [esp + 0x18]
push edi
call fcn.00407c70
jmp 0x4238cb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4238cb
mov edx, eax
lea ecx, [esp + 0x18]
push edx
call fcn.00408040
test eax, eax
je 0x4238cb
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x18]
push ecx
push edi
push edx
push eax
call fcn.00407060
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov byte [esp + 0xca8], 1
mov eax, dword [ecx - 8]
cmp eax, 0xe
jle 0x4239a1
lea edx, [esp + 0x1c]
push 0xe
push edx
lea ecx, [esp + 0x20]
call fcn.00421900
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0xca8], 2
je 0x423947
cmp dword [ecx - 0xc], ebx
jge 0x423919
mov edx, dword [0x46f430]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42391e
cmp dword [eax - 0xc], ebx
jge 0x42392e
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x20]
call fcn.004080a0
jmp 0x423947
lea ecx, [esp + 0x18]
call fcn.004083e0
mov edi, dword [edi]
mov dword [esp + 0x18], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x46f430]
mov byte [esp + 0xca8], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42397e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42397e
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004535f0
add esp, 4
mov eax, 0x47372c
test eax, eax
je 0x423992
push 0x47372c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x47372c
push eax
lea ecx, [esp + 0x20]
call fcn.00408160
lea ecx, [esp + 0x18]
call fcn.0040c4b0
push eax
call fcn.0041b120
mov ecx, dword [0x46f42c]
mov edi, eax
mov eax, esp
cmp edi, ebx
mov dword [esp + 0x14], esp
mov dword [esp + 0x20], eax
mov dword [eax], ecx
je 0x423a19
mov edx, edi
shr edx, 0x10
jne 0x4239df
and edi, 0xffff
mov ecx, eax
push edi
call fcn.00407c70
jmp 0x423a19
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x423a19
mov ecx, dword [esp + 0x20]
push eax
call fcn.00408040
test eax, eax
je 0x423a19
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x20]
push ecx
push edi
push edx
mov ecx, dword [eax]
push ecx
call fcn.00407060
add esp, 0x10
mov ecx, ebp
call fcn.0042b090
mov edx, dword [esi + 4]
push 0x3f2
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ebp, [esi + 0x8b4]
mov dword [esp + 0x10], eax
push ebp
mov ecx, ebp
mov eax, dword [ebp]
lea edi, [ebp + 8]
call dword [eax + 4]
push eax
mov ecx, edi
call fcn.0040bc80
push edi
mov edi, dword [esp + 0x14]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp eax, ebx
je 0x423a65
mov dword [ebp + 0x1c], eax
mov dword [ebp + 4], edi
mov ecx, dword [esi + 4]
push 0x3f3
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esi + 0x8e0]
lea edi, [esi + 0x8e0]
push edi
mov ecx, edi
mov dword [esp + 0x14], eax
call dword [edx + 4]
push eax
lea ecx, [edi + 8]
call fcn.0040bc80
lea eax, [edi + 8]
push eax
mov eax, dword [esp + 0x14]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp eax, ebx
je 0x423ab2
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
mov dword [edi + 4], ecx
push 0xfffffffffffffff2
push 1
push 0xffffff
mov ecx, ebp
call fcn.0042b010
push 0xfffffffffffffff4
push ebx
push 0xffffff
mov ecx, edi
call fcn.0042b010
mov edx, dword [0x46f42c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], edx
lea eax, [esp + 0x488]
push 0x100
push eax
push 0xc3
mov byte [esp + 0xcb4], 3
call fcn.00408450
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x423b29
lea edx, [esp + 0x488]
lea ecx, [esp + 0x14]
push edx
call fcn.00407430
jmp 0x423b77
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.00407e80
cmp eax, ebx
je 0x423b6c
push edi
push eax
push 0xc3
call fcn.00408450
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x423b6c
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.00407e80
cmp eax, ebx
jne 0x423b40
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00407f40
mov eax, dword [esi + 4]
push 0x403
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x38]
push edx
push eax
call ebp
test eax, eax
je 0x423bb2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x40]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [0x473700]
cmp eax, ebx
mov dword [esp + 0x1c], ecx
lea edi, [esi + 0x9a4]
jne 0x423bd6
mov dword [0x473700], ebx
lea edx, [edi + 0x1c]
push edx
push 0x4736d0
push 0x47b7a0
call fcn.00421590
mov edx, dword [esp + 0x1c]
push ebx
push eax
mov eax, dword [esp + 0x18]
push 0x3ff
push ebx
push 0x56000000
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00422040
push 0x1ad
push 0x1ad
mov ecx, edi
call fcn.004129e0
mov eax, dword [esi + 4]
push 0x40d
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push eax
call ebp
test eax, eax
je 0x423c52
mov edx, dword [esi + 4]
lea ecx, [esp + 0x40]
push ecx
push edx
call ebp
mov eax, dword [0x473700]
mov ebp, dword [esi + 4]
cmp eax, ebx
lea edi, [esi + 0x9f0]
jne 0x423c6a
mov dword [0x473700], ebx
lea eax, [edi + 0x1c]
push eax
push 0x4736d0
push 0x47b7a0
call fcn.00421590
push ebx
push eax
push 0x25b
push ebx
push 0x56000000
lea ecx, [esp + 0x4c]
push 0x4736c0
push ecx
push ebp
mov ecx, edi
call fcn.00422040
push 0x1ad
push 0x1ad
mov ecx, edi
call fcn.004129e0
lea edx, [esp + 0x488]
push 0x100
push edx
push 0xc5
call fcn.00408450
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x423ce3
lea edx, [esp + 0x488]
lea ecx, [esp + 0x14]
push edx
call fcn.00407430
jmp 0x423d31
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.00407e80
cmp eax, ebx
je 0x423d26
push edi
push eax
push 0xc5
call fcn.00408450
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x423d26
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.00407e80
cmp eax, ebx
jne 0x423cfa
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00407f40
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [0x473700]
cmp eax, ebx
mov dword [esp + 0x28], 0x5f
mov dword [esp + 0x2c], 0xc3
mov dword [esp + 0x30], 0x8f
mov dword [esp + 0x34], 0xcf
lea edi, [esi + 0x90c]
jne 0x423d71
mov dword [0x473700], ebx
lea ecx, [edi + 0x1c]
push ecx
push 0x4736d0
push 0x47b7a0
call fcn.00421590
push ebx
push eax
mov eax, dword [esp + 0x18]
push 0x6c
push ebx
push 0x46000000
lea edx, [esp + 0x3c]
push ebp
push edx
push eax
mov ecx, edi
call fcn.00422040
push 0x1ad
push 0x1ad
mov ecx, edi
call fcn.004129e0
lea ecx, [esp + 0x488]
push 0x100
push ecx
push 0xc4
call fcn.00408450
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x423de7
lea eax, [esp + 0x488]
lea ecx, [esp + 0x14]
push eax
call fcn.00407430
jmp 0x423e35
push 0x1ff
lea ecx, [esp + 0x18]
mov edi, 0x200
call fcn.00407e80
cmp eax, ebx
je 0x423e2a
push edi
push eax
push 0xc4
call fcn.00408450
mov ecx, edi
sub ecx, eax
cmp ecx, 1
jg 0x423e2a
add edi, 0x100
lea ecx, [esp + 0x14]
lea edx, [edi - 1]
push edx
call fcn.00407e80
cmp eax, ebx
jne 0x423dfe
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00407f40
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [0x473700]
cmp eax, ebx
mov dword [esp + 0x28], 0x5f
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x30], 0x8f
mov dword [esp + 0x34], 0x10b
lea edi, [esi + 0x958]
jne 0x423e75
mov dword [0x473700], ebx
lea ecx, [edi + 0x1c]
push ecx
push 0x4736d0
push 0x47b7a0
call fcn.00421590
push ebx
push eax
mov eax, dword [esp + 0x18]
push 0x6e
push ebx
push 0x46000000
lea edx, [esp + 0x3c]
push ebp
push edx
push eax
mov ecx, edi
call fcn.00422040
push 0x1ad
push 0x1ad
mov ecx, edi
call fcn.004129e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0xa64], eax
mov dword [esi + 0xa84], ebx
call fcn.00427560
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x64
push 1
push ecx
call edi
push ebx
push 0xa
mov ecx, esi
mov dword [esi + 0xb48], ebx
call fcn.00420c60
push 1
push str.FixKBHook
push str.Prescan
call fcn.004182f0
add esp, 0xc
test eax, eax
jne 0x423f0b
push 1
jmp 0x423f0d
push 2
push ebx
mov ecx, esi
call fcn.004292f0
push ebx
push 1
mov ecx, esi
call fcn.004292f0
push ebx
push 2
mov ecx, esi
call fcn.004292f0
mov edx, dword [esi + 4]
push ebx
push 0x1f4
push 4
push edx
call edi
mov eax, dword [esi + 4]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa9a]
mov word [esp + 0xa98], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x7a]
mov word [esp + 0x78], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x68a]
mov word [esp + 0x688], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x892]
mov word [esp + 0x890], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x282]
mov word [esp + 0x280], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.ScanImage
lea ecx, [esp + 0xa9c]
push 0x47afc0
push ecx
call edi
push str.liveupdate.ini
lea edx, [esp + 0x68c]
push 0x47afc0
push edx
call edi
mov eax, dword [0x46f42c]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0xa70]
lea edx, [esp + 0x24]
push ecx
push str._s.jpg
push edx
mov byte [esp + 0xcb4], 4
call fcn.004076f0
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0xa98]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call edi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x424133
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x688]
push edx
lea eax, [esp + 0x894]
push 0x104
push eax
push str.home
push 0x46fdac
push str.Coop
call ebp
lea ecx, [esp + 0x688]
lea edx, [esp + 0x280]
push ecx
push 0x104
push edx
push 0x47a15c
push str.oidname
push str.Coop
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [esp + 0x890]
push str.home
push eax
call ebp
test eax, eax
je 0x42415d
lea ecx, [esp + 0x280]
push 0x473660
push ecx
call ebp
test eax, eax
je 0x4240f9
lea edx, [esp + 0x280]
lea ebp, [esi + 0xa7c]
test edx, edx
jne 0x4240db
xor eax, eax
jmp 0x4240e9
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x280]
push ecx
push eax
mov ecx, ebp
call fcn.004080a0
lea edx, [esp + 0x890]
lea eax, [esp + 0x24]
push edx
push str.scanbk__s.jpg
push eax
call fcn.004076f0
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x78]
push ecx
push 0x47afc0
push edx
call edi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42415d
lea ecx, [esp + 0x78]
lea edi, [esi + 0xa78]
test ecx, ecx
jne 0x424145
xor eax, eax
jmp 0x424150
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x78]
push ecx
push eax
mov ecx, edi
call fcn.004080a0
mov edx, dword [esi + 0xa78]
lea eax, [esi + 0xa78]
mov ecx, dword [edx - 8]
cmp ecx, ebx
je 0x42418c
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00407110
lea edi, [esi + 0x1438]
mov ecx, edi
call fcn.0042d970
jmp 0x4241a3
lea edi, [esi + 0x1438]
push 0x473638
push 0xf3
mov ecx, edi
call fcn.0042d870
cmp dword [esi + 0x1448], ebx
je 0x4241b3
cmp dword [esi + 0x1440], ebx
jne 0x4241c4
push 0x473638
push 0xf3
mov ecx, edi
call fcn.0042d870
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x47a15c
call fcn.00407200
push 1
push 1
call fcn.00404880
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0xca8], 3
call fcn.00408010
lea ecx, [esp + 0x14]
mov byte [esp + 0xca8], 1
call fcn.00408010
lea ecx, [esp + 0x18]
mov byte [esp + 0xca8], 0
call fcn.00408010
mov eax, dword [esp + 0x20]
mov dword [esp + 0xca8], 0xffffffff
cmp eax, ebx
je 0x424230
lea ecx, [esp + 0x20]
call fcn.00417940
mov ecx, dword [esp + 0xca0]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc9c
ret 8