Function at 0x441ea9
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.0043004d
cmp dword [0x4a70b0], 0
jne 0x441ecb
xor eax, eax
inc eax
jmp 0x4422d9
push ebx
push esi
push edi
lea ecx, [ebp + 8]
call fcn.00430281
lea ecx, [ebp - 0x24]
call fcn.00433c24
lea ecx, [ebp - 0x3c]
call fcn.00433c24
lea ecx, [ebp - 0x38]
call fcn.00433c24
lea ecx, [ebp - 0x34]
call fcn.00433c24
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.0042ebab
push 0xf
push dword [ebp + 8]
mov byte [ebp - 1], 0
push str.__gethostbyname
call fcn.0042fae7
add esp, 0x10
test al, al
je 0x441f88
add dword [ebp + 8], 0x1e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
test cx, cx
je 0x441f49
mov eax, ecx
call fcn.00402b47
test al, al
je 0x441f79
mov byte [ebp - 1], 1
jmp 0x441f79
mov eax, ecx
call fcn.00402b47
test al, al
jne 0x441f7e
cmp cx, 0x2a
jne 0x441f66
or byte [ebp - 1], 2
jmp 0x441f70
cmp cx, 0x23
jne 0x441f70
or byte [ebp - 1], 4
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov cx, word [eax]
test cx, cx
jne 0x441f4f
lea eax, [ebp + 8]
push eax
call fcn.0042ebab
pop ecx
or ebx, 0xffffffff
push ebx
lea eax, [ebp + 8]
push eax
push str.__file
call fcn.00435950
add esp, 0xc
test al, al
je 0x441fa4
mov dword [ebp - 0xc], ebx
push ebx
lea eax, [ebp + 8]
push eax
push str.__shm
call fcn.00435950
add esp, 0xc
test al, al
je 0x441fc1
mov dword [ebp - 0xc], 0xfffffffe
push ebx
lea eax, [ebp + 8]
push eax
push str.__event
call fcn.00435950
add esp, 0xc
test al, al
je 0x441fde
mov dword [ebp - 0xc], 0xfffffffc
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
mov byte [ebp - 2], 0
jne 0x441ffc
add dword [ebp + 8], edi
lea eax, [ebp + 8]
push eax
mov byte [ebp - 2], 1
call fcn.0042ebab
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.0042a99b
cmp byte [ebp - 1], 0
je 0x4421d2
lea ecx, [ebp - 0xc]
call fcn.00433c24
mov ecx, dword [ebp - 8]
push 0x3b
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042a99b
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 4
xor esi, esi
xor ebx, ebx
call fcn.00402b2c
lea ecx, [ebp - 0x14]
call fcn.00433c24
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 0x4420ba
cmp byte [edi], bl
je 0x442083
push edi
call dword [0x4a70f8]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x4420ba
and dword [ebp - 0x1c], ebx
push edi
call dword [0x4a70fc]
test eax, eax
je 0x4420ba
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 0x4420ba
mov al, byte [ebp - 1]
mov byte [ebp + 0xf], al
mov eax, dword [esi]
test eax, eax
je 0x4421a7
add esi, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
test byte [ebp - 1], 4
lea ecx, [ebp - 0x14]
je 0x44212d
lea eax, [ebx + 0x20]
push eax
call fcn.00433c6b
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 0x4420f6
push 0x20
pop eax
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x74]
push eax
call fcn.0047b530
push str.0x_08I64X
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp + 8]
call fcn.00470d8d
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 0x442189
movsx esi, word [ebp - 0x20]
lea eax, [esi + esi*2]
lea eax, [ebx + eax*2]
push eax
call fcn.00433c6b
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 0x442180
lea edi, [esi + 1]
mov esi, dword [ebp - 0x18]
movzx eax, byte [esi]
push eax
push 0x496484
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 0x442155
mov esi, dword [ebp - 0x10]
dec eax
dec eax
and word [eax], 0
test byte [ebp + 0xf], 2
je 0x4421a7
cmp dword [esi], 0
je 0x4421a7
mov word [eax], 0x20
sub eax, dword [ebp - 0x2c]
inc eax
inc eax
sar eax, 1
add ebx, eax
jmp 0x4420a7
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.004335ed
lea ecx, [ebp - 0x14]
call fcn.0042eb98
lea ecx, [ebp - 0x28]
call fcn.0042eb98
lea ecx, [ebp - 0xc]
call fcn.0042eb98
jmp 0x4422b2
cmp dword [ebp - 0xc], ebx
jne 0x4422dd
mov eax, dword [ebp + 8]
mov cx, word [eax]
and cx, 0xffdf
cmp cx, 0x57
push 3
mov ebx, 0x80000000
pop esi
jne 0x442214
push 4
add eax, edi
mov ebx, 0xc0000000
pop esi
mov dword [ebp + 8], eax
jmp 0x442214
add eax, edi
cmp cx, 0x2c
mov dword [ebp + 8], eax
je 0x44221c
cmp cx, 0x3b
je 0x44221c
mov cx, word [eax]
test cx, cx
jne 0x442203
lea ecx, [ebp - 0x20]
call fcn.00433c24
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.0042a99b
push dword [ebp - 0x20]
call fcn.0040ec9c
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.004041e7
mov ebx, eax
cmp ebx, edi
jne 0x44226b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x20]
jmp 0x44261a
lea ecx, [ebp - 0x20]
call fcn.0042eb98
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x44228f
mov esi, dword [ebp - 8]
push esi
call fcn.0040e27f
pop ecx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x442562
cmp byte [ebp - 2], 0
mov eax, dword [ebp - 8]
jne 0x44229e
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.00434165
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.0042eb98
lea ecx, [ebp - 0x38]
call fcn.0042eb98
lea ecx, [ebp - 0x3c]
call fcn.0042eb98
lea ecx, [ebp - 0x24]
call fcn.0042eb98
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 0xc], 0xfffffffe
jne 0x44251b
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 0x442341
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 0x442341
add eax, edi
cmp cx, si
mov dword [ebp + 8], eax
je 0x442349
cmp cx, 0x3b
je 0x442349
mov cx, word [eax]
test cx, cx
jne 0x442331
lea ecx, [ebp - 0x14]
call fcn.00433c24
lea ecx, [ebp - 0x18]
call fcn.00433c24
mov ecx, dword [ebp - 8]
push 0x3b
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042a99b
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x4423bb
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004385d3
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
pop ecx
je 0x4423bb
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.0042a99b
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x4423bb
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004385d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp word [ecx], ax
je 0x44250e
cmp dword [ebp - 0x48], eax
jl 0x44250e
jg 0x4423dd
cmp dword [ebp - 0x4c], eax
jb 0x44250e
cmp dword [ebp - 0x40], eax
jl 0x44250e
jg 0x4423f1
cmp dword [ebp - 0x44], eax
jb 0x44250e
or dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00433c24
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Globalpecmd2012.shm.
lea ecx, [ebp - 0x10]
call fcn.00433ce1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00433c92
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 0x4424aa
mov eax, dword [ebp - 0x18]
cmp word [eax], di
je 0x442490
mov ecx, dword [ebp - 8]
movsx ebx, byte [ecx + 0x95]
push eax
call fcn.0040ec9c
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.004041e7
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x442490
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042eb98
lea ecx, [ebp - 0x18]
call fcn.0042eb98
lea ecx, [ebp - 0x14]
jmp 0x44261a
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 0x4424cf
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 0x4424e0
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x1c], edi
jne 0x4424f6
cmp ebx, edi
je 0x442470
cmp ebx, 0xffffffff
je 0x442470
push ebx
call esi
jmp 0x442470
lea ecx, [ebp - 0x10]
call fcn.0042eb98
lea ecx, [ebp - 0x18]
call fcn.0042eb98
lea ecx, [ebp - 0x14]
jmp 0x44226e
lea ecx, [ebp - 0x18]
call fcn.0042eb98
lea ecx, [ebp - 0x14]
jmp 0x44255d
cmp dword [ebp - 0xc], 0xfffffffc
jne 0x44263c
lea ecx, [ebp - 0x10]
call fcn.00433c24
lea ecx, [ebp - 0x20]
call fcn.00433c24
mov ecx, dword [ebp - 8]
push 0x3b
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042a99b
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp word [eax], si
jne 0x44256c
lea ecx, [ebp - 0x20]
call fcn.0042eb98
lea ecx, [ebp - 0x10]
call fcn.0042eb98
mov esi, 0x80070057
jmp 0x4422b4
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.004041a2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004041a2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004041a2
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00433c24
push ebx
push ebx
push str.Globalpecmd2012.event.
lea ecx, [ebp - 0x18]
call fcn.00433ce1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00433c92
cmp dword [ebp - 0x28], esi
jne 0x4425dd
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, eax
cmp ebx, esi
jne 0x442624
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 0x442624
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0042eb98
lea ecx, [ebp - 0x20]
call fcn.0042eb98
lea ecx, [ebp - 0x10]
call fcn.0042eb98
jmp 0x4422b4
lea ecx, [ebp - 0x18]
call fcn.0042eb98
lea ecx, [ebp - 0x20]
call fcn.0042eb98
lea ecx, [ebp - 0x10]
jmp 0x44226e
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x44268a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004369c5
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
pop ecx
je 0x44268a
add dword [ebp + 8], edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004369c5
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop ecx
pop ecx
je 0x44268a
add dword [ebp + 8], edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004369c5
pop ecx
pop ecx
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call dword [0x4a70b0]
mov ebx, eax
test ebx, ebx
jg 0x442273
xor esi, esi
inc esi
jmp 0x4422b4