Function at 0x440ebe
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 8], ecx
lea ecx, [ebp + 8]
call fcn.0042f1c6
cmp dword [0x4a60b0], 0
jne 0x440ee0
xor eax, eax
inc eax
jmp 0x4412ee
push ebx
push esi
push edi
lea ecx, [ebp + 8]
call fcn.0042f3fa
lea ecx, [ebp - 0x24]
call fcn.00432cb7
lea ecx, [ebp - 0x3c]
call fcn.00432cb7
lea ecx, [ebp - 0x38]
call fcn.00432cb7
lea ecx, [ebp - 0x34]
call fcn.00432cb7
push 2
pop edi
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x2c], 6
call fcn.0042dd40
push 0xf
push dword [ebp + 8]
mov byte [ebp - 1], 0
push str.__gethostbyname
call fcn.0042ecb0
add esp, 0x10
test al, al
je 0x440f9d
add dword [ebp + 8], 0x1e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
test cx, cx
je 0x440f5e
mov eax, ecx
call fcn.00402b57
test al, al
je 0x440f8e
mov byte [ebp - 1], 1
jmp 0x440f8e
mov eax, ecx
call fcn.00402b57
test al, al
jne 0x440f93
cmp cx, 0x2a
jne 0x440f7b
or byte [ebp - 1], 2
jmp 0x440f85
cmp cx, 0x23
jne 0x440f85
or byte [ebp - 1], 4
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov cx, word [eax]
test cx, cx
jne 0x440f64
lea eax, [ebp + 8]
push eax
call fcn.0042dd40
pop ecx
or ebx, 0xffffffff
push ebx
lea eax, [ebp + 8]
push eax
push str.__file
call fcn.004349fd
add esp, 0xc
test al, al
je 0x440fb9
mov dword [ebp - 0xc], ebx
push ebx
lea eax, [ebp + 8]
push eax
push str.__shm
call fcn.004349fd
add esp, 0xc
test al, al
je 0x440fd6
mov dword [ebp - 0xc], 0xfffffffe
push ebx
lea eax, [ebp + 8]
push eax
push str.__event
call fcn.004349fd
add esp, 0xc
test al, al
je 0x440ff3
mov dword [ebp - 0xc], 0xfffffffc
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
mov byte [ebp - 2], 0
jne 0x441011
add dword [ebp + 8], edi
lea eax, [ebp + 8]
push eax
mov byte [ebp - 2], 1
call fcn.0042dd40
pop ecx
mov ecx, dword [ebp - 8]
push 0x3b
push 0x2c
pop esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429b46
cmp byte [ebp - 1], 0
je 0x4411e7
lea ecx, [ebp - 0xc]
call fcn.00432cb7
mov ecx, dword [ebp - 8]
push 0x3b
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429b46
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 4
xor esi, esi
xor ebx, ebx
call fcn.00402b3c
lea ecx, [ebp - 0x14]
call fcn.00432cb7
mov edi, dword [ebp - 0x28]
test edi, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov byte [ebp + 0xf], 1
mov dword [ebp - 0x10], esi
je 0x4410cf
cmp byte [edi], bl
je 0x441098
push edi
call dword [0x4a60f8]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x4410cf
and dword [ebp - 0x1c], ebx
push edi
call dword [0x4a60fc]
test eax, eax
je 0x4410cf
mov esi, dword [eax + 0xc]
cmp dword [esi], 0
mov cx, word [eax + 0xa]
mov word [ebp - 0x20], cx
mov dword [ebp - 0x10], esi
je 0x4410cf
mov al, byte [ebp - 1]
mov byte [ebp + 0xf], al
mov eax, dword [esi]
test eax, eax
je 0x4411bc
add esi, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
test byte [ebp - 1], 4
lea ecx, [ebp - 0x14]
je 0x441142
lea eax, [ebx + 0x20]
push eax
call fcn.00432cfe
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x74], 0
and dword [ebp - 0x70], 0
lea eax, [eax + ebx*2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], eax
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
movsx eax, word [ebp - 0x20]
cmp eax, 0x20
jbe 0x44110b
push 0x20
pop eax
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x74]
push eax
call fcn.0047a010
push str.0x_08I64X
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp + 8]
call fcn.0046f87d
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 0x44119e
movsx esi, word [ebp - 0x20]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.00432cfe
dec esi
mov eax, dword [ebp - 0x14]
lea ecx, [eax + ebx*2]
mov dword [ebp + 8], ecx
lea eax, [ecx + 2]
mov dword [ebp - 0x2c], ecx
js 0x441195
lea edi, [esi + 1]
mov esi, dword [ebp - 0x18]
movzx eax, byte [esi]
push eax
push 0x495374
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 0x44116a
mov esi, dword [ebp - 0x10]
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0xf], 2
je 0x4411bc
cmp dword [esi], 0
je 0x4411bc
mov word [eax], 0x20
sub eax, dword [ebp - 0x2c]
inc eax
inc eax
sar eax, 1
add ebx, eax
jmp 0x4410bc
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.00432698
lea ecx, [ebp - 0x14]
call fcn.0042dd2d
lea ecx, [ebp - 0x28]
call fcn.0042dd2d
lea ecx, [ebp - 0xc]
call fcn.0042dd2d
jmp 0x4412c7
cmp dword [ebp - 0xc], ebx
jne 0x4412f2
mov eax, dword [ebp + 8]
mov cx, word [eax]
and cx, 0xffdf
cmp cx, 0x57
push 3
mov ebx, 0x80000000
pop esi
jne 0x441229
push 4
add eax, edi
mov ebx, 0xc0000000
pop esi
mov dword [ebp + 8], eax
jmp 0x441229
add eax, edi
cmp cx, 0x2c
mov dword [ebp + 8], eax
je 0x441231
cmp cx, 0x3b
je 0x441231
mov cx, word [eax]
test cx, cx
jne 0x441218
lea ecx, [ebp - 0x20]
call fcn.00432cb7
mov ecx, dword [ebp - 8]
xor edi, edi
push edi
push 0x2c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429b46
push dword [ebp - 0x20]
call fcn.0040e84c
pop ecx
push edi
push edi
push esi
push edi
push 7
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
call fcn.004041da
mov ebx, eax
cmp ebx, edi
jne 0x441280
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x20]
jmp 0x44162f
lea ecx, [ebp - 0x20]
call fcn.0042dd2d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4412a4
mov esi, dword [ebp - 8]
push esi
call fcn.0040de2f
pop ecx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x441577
cmp byte [ebp - 2], 0
mov eax, dword [ebp - 8]
jne 0x4412b3
mov eax, dword [ecx + 0x14c]
push dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push ebx
push edx
push eax
call fcn.00433214
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.0042dd2d
lea ecx, [ebp - 0x38]
call fcn.0042dd2d
lea ecx, [ebp - 0x3c]
call fcn.0042dd2d
lea ecx, [ebp - 0x24]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0xc], 0xfffffffe
jne 0x441530
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov cx, word [eax]
and cx, 0xffdf
cmp cx, 0x57
push 4
mov dword [ebp - 0x28], edi
pop ebx
mov dword [ebp - 0x30], 0x80000000
jne 0x441356
mov ecx, dword [ebp - 8]
push 6
add eax, edi
mov dword [ebp - 0x28], ebx
pop ebx
mov dword [ebp - 0x30], 0xc0000000
mov byte [ecx + 0x95], 4
mov dword [ebp + 8], eax
jmp 0x441356
add eax, edi
cmp cx, si
mov dword [ebp + 8], eax
je 0x44135e
cmp cx, 0x3b
je 0x44135e
mov cx, word [eax]
test cx, cx
jne 0x441346
lea ecx, [ebp - 0x14]
call fcn.00432cb7
lea ecx, [ebp - 0x18]
call fcn.00432cb7
mov ecx, dword [ebp - 8]
push 0x3b
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429b46
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x4413d0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004374f6
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
pop ecx
je 0x4413d0
mov ecx, dword [ebp - 8]
add dword [ebp + 8], edi
push 0
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429b46
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x4413d0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004374f6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp word [ecx], ax
je 0x441523
cmp dword [ebp - 0x48], eax
jl 0x441523
jg 0x4413f2
cmp dword [ebp - 0x4c], eax
jb 0x441523
cmp dword [ebp - 0x40], eax
jl 0x441523
jg 0x441406
cmp dword [ebp - 0x44], eax
jb 0x441523
or dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00432cb7
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Globalpecmd2012.shm.
lea ecx, [ebp - 0x10]
call fcn.00432d74
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00432d25
mov esi, dword [ebp - 0x4c]
add esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
adc eax, dword [ebp - 0x40]
push dword [ebp - 0x10]
xor edi, edi
push edi
push ebx
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x4414bf
mov eax, dword [ebp - 0x18]
cmp word [eax], di
je 0x4414a5
mov ecx, dword [ebp - 8]
movsx ebx, byte [ecx + 0x95]
push eax
call fcn.0040e84c
pop ecx
push edi
push edi
push ebx
push edi
push 7
push dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
call fcn.004041da
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x4414a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042dd2d
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x14]
jmp 0x44162f
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x4414e4
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x44]
sar eax, 0x1f
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x40]
and eax, 4
or eax, 8
shr eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4414f5
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x1c], edi
jne 0x44150b
cmp ebx, edi
je 0x441485
cmp ebx, 0xffffffff
je 0x441485
push ebx
call esi
jmp 0x441485
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x14]
jmp 0x441283
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x14]
jmp 0x441572
cmp dword [ebp - 0xc], 0xfffffffc
jne 0x441651
lea ecx, [ebp - 0x10]
call fcn.00432cb7
lea ecx, [ebp - 0x20]
call fcn.00432cb7
mov ecx, dword [ebp - 8]
push 0x3b
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00429b46
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp word [eax], si
jne 0x441581
lea ecx, [ebp - 0x20]
call fcn.0042dd2d
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
mov esi, 0x80070057
jmp 0x4412c9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
call fcn.00404195
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404195
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404195
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00432cb7
push ebx
push ebx
push str.Globalpecmd2012.event.
lea ecx, [ebp - 0x18]
call fcn.00432d74
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00432d25
cmp dword [ebp - 0x28], esi
jne 0x4415f2
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, eax
cmp ebx, esi
jne 0x441639
push dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 0x28], esi
setne al
push eax
xor eax, eax
cmp dword [ebp - 0x14], esi
setne al
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, esi
jne 0x441639
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0042dd2d
lea ecx, [ebp - 0x20]
call fcn.0042dd2d
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
jmp 0x4412c9
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
lea ecx, [ebp - 0x20]
call fcn.0042dd2d
lea ecx, [ebp - 0x10]
jmp 0x441283
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x44169f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004358e8
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
pop ecx
je 0x44169f
add dword [ebp + 8], edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004358e8
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
pop ecx
je 0x44169f
add dword [ebp + 8], edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004358e8
pop ecx
pop ecx
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call dword [0x4a60b0]
mov ebx, eax
test ebx, ebx
jg 0x441288
xor esi, esi
inc esi
jmp 0x4412c9