Function at 0x445b51
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x28], ecx
push ebx
lea ecx, [ebp + 8]
call fcn.00433214
xor ebx, ebx
cmp dword [0x4b00d0], ebx
jne 0x445b78
xor eax, eax
inc eax
jmp 0x445f82
push esi
push edi
lea ecx, [ebp + 8]
call fcn.00433448
lea ecx, [ebp - 0x38]
call fcn.0043717e
lea ecx, [ebp - 0x5c]
call fcn.0043717e
lea ecx, [ebp - 0x80]
call fcn.0043717e
lea ecx, [ebp - 0x58]
call fcn.0043717e
push 2
pop esi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x34], 6
call fcn.00431c97
push 0xf
push dword [ebp + 8]
mov byte [ebp - 1], bl
push str.__gethostbyname
call fcn.00432c59
add esp, 0x10
test al, al
je 0x445c33
add dword [ebp + 8], 0x1e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp cx, bx
je 0x445bf4
mov eax, ecx
call fcn.00431c5f
test al, al
je 0x445c24
mov byte [ebp - 1], 1
jmp 0x445c24
mov eax, ecx
call fcn.00431c5f
test al, al
jne 0x445c29
cmp cx, 0x2a
jne 0x445c11
or byte [ebp - 1], 2
jmp 0x445c1b
cmp cx, 0x23
jne 0x445c1b
or byte [ebp - 1], 4
add dword [ebp + 8], esi
mov eax, dword [ebp + 8]
mov cx, word [eax]
cmp cx, bx
jne 0x445bfa
lea eax, [ebp + 8]
push eax
call fcn.00431c97
pop ecx
or edi, 0xffffffff
push edi
lea eax, [ebp + 8]
push eax
push 0x49ed90
call fcn.00438eee
add esp, 0xc
test al, al
je 0x445c4f
mov dword [ebp - 0x1c], edi
push edi
lea eax, [ebp + 8]
push eax
push str.__shm
call fcn.00438eee
add esp, 0xc
test al, al
je 0x445c6c
mov dword [ebp - 0x1c], 0xfffffffe
push edi
lea eax, [ebp + 8]
push eax
push str.__event
call fcn.00438eee
add esp, 0xc
test al, al
je 0x445c89
mov dword [ebp - 0x1c], 0xfffffffc
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
mov byte [ebp - 0x21], bl
jne 0x445ca6
add dword [ebp + 8], esi
lea eax, [ebp + 8]
push eax
mov byte [ebp - 0x21], 1
call fcn.00431c97
pop ecx
mov ecx, dword [ebp - 0x28]
push 0x3b
push 0x2c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d9ac
cmp byte [ebp - 1], bl
je 0x445e77
lea ecx, [ebp - 0x20]
call fcn.0043717e
mov ecx, dword [ebp - 0x28]
push 0x3b
push 0x2c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d9ac
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x2c], ebx
call fcn.00402bd8
lea ecx, [ebp - 0x14]
call fcn.0043717e
mov edi, dword [ebp - 0x18]
xor esi, esi
cmp edi, ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], eax
mov byte [ebp + 0xf], 1
mov dword [ebp - 8], esi
je 0x445d62
cmp byte [edi], bl
je 0x445d2c
push edi
call dword [0x4b0118]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x445d62
mov dword [ebp - 0x1c], ebx
push edi
call dword [0x4b011c]
cmp eax, ebx
je 0x445d62
mov esi, dword [eax + 0xc]
cmp dword [esi], ebx
mov cx, word [eax + 0xa]
mov word [ebp - 0x10], cx
mov dword [ebp - 8], esi
je 0x445d62
mov al, byte [ebp - 1]
mov byte [ebp + 0xf], al
mov eax, dword [esi]
cmp eax, ebx
je 0x445e51
add esi, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
test byte [ebp - 1], 4
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
je 0x445dd6
lea eax, [edi + 0x3e]
push eax
call fcn.004371c5
mov eax, dword [ebp - 0x14]
lea eax, [eax + edi*2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x34], eax
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
rep stosd dword es:[edi], eax
movsx eax, word [ebp - 0x10]
cmp eax, 0x20
jbe 0x445d9f
push 0x20
pop eax
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00410b58
push str.0x_08I64X
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp + 8]
call fcn.00478179
add esp, 0x1c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
mov dword [ebp + 8], eax
jmp 0x445e33
movsx esi, word [ebp - 0x10]
lea eax, [esi + esi*2]
lea eax, [edi + eax*2]
push eax
call fcn.004371c5
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edi*2]
dec esi
cmp esi, ebx
mov dword [ebp + 8], ecx
lea eax, [ecx + 2]
mov dword [ebp - 0x34], ecx
jl 0x445e2b
lea edi, [esi + 1]
mov esi, dword [ebp - 0xc]
movzx eax, byte [esi]
push eax
push 0x49ed64
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp + 8]
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec edi
mov ecx, dword [ebp + 8]
lea ecx, [ecx + eax*2]
mov dword [ebp + 8], ecx
mov eax, ecx
jne 0x445e00
mov esi, dword [ebp - 8]
dec eax
dec eax
mov word [eax], bx
test byte [ebp + 0xf], 2
je 0x445e51
cmp dword [esi], ebx
je 0x445e51
mov word [eax], 0x20
sub eax, dword [ebp - 0x34]
inc eax
inc eax
sar eax, 1
add dword [ebp - 0x2c], eax
jmp 0x445d4f
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x38]
call fcn.00436b54
lea ecx, [ebp - 0x14]
call fcn.00431c4c
lea ecx, [ebp - 0x18]
call fcn.00431c4c
lea ecx, [ebp - 0x20]
jmp 0x446355
cmp dword [ebp - 0x1c], edi
jne 0x445f87
mov eax, dword [ebp + 8]
mov cx, word [eax]
and cx, 0xffdf
cmp cx, 0x57
mov edi, 0x80000000
mov dword [ebp - 0x18], 3
jne 0x445ec1
add eax, esi
mov edi, 0xc0000000
mov dword [ebp - 0x18], 4
mov dword [ebp + 8], eax
jmp 0x445ec1
add eax, esi
cmp cx, 0x2c
mov dword [ebp + 8], eax
je 0x445ec9
cmp cx, 0x3b
je 0x445ec9
mov cx, word [eax]
cmp cx, bx
jne 0x445eb0
lea ecx, [ebp - 0x10]
call fcn.0043717e
mov ecx, dword [ebp - 0x28]
push ebx
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d9ac
push dword [ebp - 0x10]
call fcn.0040f738
pop ecx
push ebx
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ebx
push 7
push edi
push eax
mov dword [ebp - 0x30], ebx
call fcn.00404863
mov edi, eax
cmp edi, ebx
jne 0x445f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 0x10]
jmp 0x446355
lea ecx, [ebp - 0x10]
call fcn.00431c4c
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jne 0x445f3c
mov esi, dword [ebp - 0x28]
push esi
call fcn.0040f152
pop ecx
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x44625d
cmp byte [ebp - 0x21], bl
mov eax, dword [ebp - 0x28]
jne 0x445f4a
mov eax, dword [ecx + 0x150]
push dword [ebp - 0x34]
lea edx, [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push edi
push edx
push eax
call fcn.00437708
lea ecx, [ebp - 0x58]
call fcn.00431c4c
lea ecx, [ebp - 0x80]
call fcn.00431c4c
lea ecx, [ebp - 0x5c]
call fcn.00431c4c
lea ecx, [ebp - 0x38]
call fcn.00431c4c
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0x1c], 0xfffffffe
jne 0x446217
mov eax, dword [ebp + 8]
mov dx, word [eax]
push 4
xor edi, edi
and dx, 0xffdf
cmp dx, 0x57
pop ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], 0x80000000
jne 0x445ff3
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
add eax, esi
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x30], 0xc0000000
mov byte [ecx + 0x91], 4
mov dword [ebp + 8], eax
jmp 0x445ff3
add eax, esi
cmp cx, 0x2c
mov dword [ebp + 8], eax
je 0x445ffb
cmp cx, 0x3b
je 0x445ffb
mov cx, word [eax]
cmp cx, bx
jne 0x445fe2
lea ecx, [ebp - 0x14]
call fcn.0043717e
lea ecx, [ebp - 0xc]
call fcn.0043717e
mov ecx, dword [ebp - 0x28]
push 0x3b
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d9ac
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x44606e
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043bfa0
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
pop ecx
je 0x44606b
mov ecx, dword [ebp - 0x28]
add dword [ebp + 8], esi
push ebx
push 0x2c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d9ac
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x44606b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043bfa0
pop ecx
pop ecx
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x44620a
cmp edi, ebx
jl 0x44620a
jg 0x44608d
cmp dword [ebp - 0x48], ebx
jb 0x44620a
cmp dword [ebp - 0x3c], ebx
jl 0x44620a
jg 0x4460a1
cmp dword [ebp - 0x40], ebx
jb 0x44620a
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 8]
call fcn.0043717e
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Globalpecmd2012.shm.
lea ecx, [ebp - 8]
call fcn.0043723b
push dword [ebp - 0x14]
lea ecx, [ebp - 8]
call fcn.004371ec
push dword [ebp - 8]
mov esi, dword [ebp - 0x48]
add esi, dword [ebp - 0x40]
push ebx
adc edi, dword [ebp - 0x3c]
push dword [ebp - 0x18]
mov dword [ebp - 0x84], edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
cmp edi, ebx
jne 0x44619e
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x446144
mov ecx, dword [ebp - 0x28]
movsx edi, byte [ecx + 0x91]
push eax
call fcn.0040f738
pop ecx
push ebx
push ebx
push edi
push ebx
push 7
push dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
call fcn.00404863
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x446144
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.00431c4c
lea ecx, [ebp - 0xc]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
jmp 0x446355
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 1
push ebx
push 1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [ebp - 8]
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x84]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
je 0x4461c3
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x40]
sar eax, 0x1f
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x3c]
and eax, 4
or eax, 8
shr eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4461d4
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x2c], ebx
jne 0x4461f2
cmp edi, ebx
je 0x446124
cmp edi, 0xffffffff
je 0x446124
push edi
call esi
jmp 0x446124
lea ecx, [ebp - 8]
call fcn.00431c4c
lea ecx, [ebp - 0xc]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
jmp 0x445f1b
lea ecx, [ebp - 0xc]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
jmp 0x446258
cmp dword [ebp - 0x1c], 0xfffffffc
jne 0x446377
lea ecx, [ebp - 8]
call fcn.0043717e
lea ecx, [ebp - 0x10]
call fcn.0043717e
mov ecx, dword [ebp - 0x28]
push 0x3b
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d9ac
mov eax, dword [ebp - 8]
cmp word [eax], bx
jne 0x446267
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00431c4c
mov ebx, 0x80070057
jmp 0x445f5e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040481e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040481e
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040481e
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0043717e
push edi
push edi
push str.Globalpecmd2012.event.
lea ecx, [ebp - 0xc]
call fcn.0043723b
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.004371ec
cmp dword [ebp - 0x20], ebx
jne 0x4462dc
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
cmp edi, ebx
jne 0x44635f
xor eax, eax
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [ebp - 0xc]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x50], eax
xor eax, eax
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x54], 0xc
setne al
mov dword [ebp - 0x4c], ebx
push eax
xor eax, eax
cmp dword [ebp - 0x18], ebx
setne al
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
jne 0x44635f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.00431c4c
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00431c4c
jmp 0x445f5e
lea ecx, [ebp - 0xc]
call fcn.00431c4c
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 8]
jmp 0x445f1b
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x4463c2
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439fac
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
pop ecx
je 0x4463c2
add dword [ebp + 8], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439fac
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
pop ecx
je 0x4463c2
add dword [ebp + 8], esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439fac
pop ecx
pop ecx
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [0x4b00d0]
mov edi, eax
cmp edi, ebx
jg 0x445f20
xor ebx, ebx
inc ebx
jmp 0x445f5e