Function at 0x402850
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.004077c0
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
je 0x403027
cmp dword [ebp + 0x14], 0x80000003
jne 0x40288e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x304]
push 0x100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x304]
push eax
push esi
call dword [0x4080a0]
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x4029da
mov edi, str.distrib
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [0x4081d0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.distrib
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x402929
lea edx, [ebp - 0x50]
mov edi, str.ReplExceptDist.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebx]
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
je 0x4029ff
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x50]
push ecx
push edx
push ebx
lea eax, [ebp - 0x504]
push str.The__s_executable_is_terminating_abnormally_because_it_hit_an_exception._Exception_Code__lx._Check_file__s_for_details.
push eax
jmp 0x402a1a
mov edi, str.snapshot
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.snapshot
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x402952
lea edx, [ebp - 0x50]
mov edi, str.ReplExceptSnapshot.log
jmp 0x4028e8
mov edi, str.logread
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.logread
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x40297e
lea edx, [ebp - 0x50]
mov edi, str.ReplExceptLogRdr.log
jmp 0x4028e8
mov edi, str.replmerg
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.replmerg
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x4029aa
lea edx, [ebp - 0x50]
mov edi, str.ReplExceptMerge.log
jmp 0x4028e8
mov edi, str.rdistcom
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.rdistcom
push ebx
call esi
add esp, 0xc
lea edx, [ebp - 0x50]
test eax, eax
je 0x4028e3
mov edi, str.ReplExcept.log
jmp 0x4028e8
mov edi, str.ReplExcept.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x304]
push edx
push eax
lea ecx, [ebp - 0x504]
push str.The__s_executable_is_terminating_abnormally_because_it_hit_an_exception._Exception_Code__lx._Check_file__s_for_details.
push ecx
call dword [0x4081e4]
add esp, 0x14
push str.SQLSERVERAGENT
push 0
call dword [0x408014]
mov esi, eax
test esi, esi
je 0x402a76
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x204]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x204]
lea edx, [ebp - 0x504]
push eax
push 0
push 1
push 0
push 0xc0000034
push 0
push 1
push esi
mov dword [ebp - 0x204], edx
call dword [0x408010]
push esi
call dword [0x40800c]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x402b02
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x304]
push ecx
push edx
push 0
push str.SQLPath
push str.SOFTWAREMicrosoftMSSQLServerSetup
push 0x80000002
call fcn.00403040
add esp, 0x18
test eax, eax
jl 0x402b02
mov edi, str.log_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x304]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x304]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x402b23
lea edi, [ebp - 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x304]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
push 0x80
push 4
rep movsb byte es:[edi], byte [esi]
push 0
push 0
lea ecx, [ebp - 0x304]
push 0xc0000000
push ecx
call dword [0x408124]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403003
push 2
push 0
push 0
push ebx
call dword [0x4080c4]
cmp eax, 0xffffffff
je 0x403003
push ebx
call fcn.004030c0
add esp, 4
push 0
call dword [sym.imp.IMAGEHLP.dll_SymSetOptions]
lea edx, [ebp - 0x120c]
push 0x800
push edx
push str.PATH
call dword [0x408120]
lea eax, [ebp - 0x120c]
push 1
push eax
call dword [0x40811c]
push eax
call dword [sym.imp.IMAGEHLP.dll_SymInitialize]
test eax, eax
je 0x403027
mov edx, dword [ebp + 8]
mov ecx, 0x1d
xor eax, eax
lea edi, [ebp - 0x1c4]
mov esi, dword [edx + 4]
push 0x117
rep stosd dword es:[edi], eax
mov ecx, 0xb3
lea edi, [ebp - 0xa0c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x954]
mov ecx, dword [ebp - 0x958]
mov edx, dword [ebp - 0x948]
mov dword [ebp - 0x1c4], eax
mov eax, 3
push 8
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x198], eax
call dword [0x408118]
push eax
call dword [0x408114]
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x403006
mov ecx, 0x45
xor eax, eax
mov edi, esi
push str._r_n_r_n_r_nAn_exception_was_caught_r_nin
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x150]
mov dword [esi], 0x18
push eax
mov dword [esi + 0x10], 0x100
call dword [0x4081e4]
mov edi, dword [0x408110]
add esp, 8
lea ecx, [ebp - 4]
lea edx, [ebp - 0x150]
push 0
push ecx
push edx
call edi
mov esi, dword [0x40810c]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402c9e
cmp byte [eax], 0
je 0x402c9e
lea ecx, [ebp - 4]
push 0
push ecx
push eax
call edi
mov edx, dword [ebp + 0x10]
push eax
push edx
jmp 0x402cc9
lea eax, [ebp - 0x304]
push 0x100
push eax
push 0
call dword [0x4080a0]
lea ecx, [ebp - 4]
push 0
lea edx, [ebp - 0x304]
push ecx
push edx
call edi
push eax
lea eax, [ebp - 0x304]
push eax
push ebx
call esi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
test eax, eax
je 0x402cda
mov eax, dword [eax + 0xc]
jmp 0x402cdc
xor eax, eax
push eax
lea edx, [ebp - 0x150]
push str._r_n_r_n_Exception_Address___08x_r_n
push edx
call dword [0x4081e4]
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x150]
push 0
push eax
push ecx
call edi
lea edx, [ebp - 0x150]
push eax
push edx
push ebx
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x402d19
mov eax, dword [eax]
jmp 0x402d1b
xor eax, eax
push eax
lea ecx, [ebp - 0x150]
push str._Exception_Code___08x_r_n
push ecx
call dword [0x4081e4]
add esp, 0xc
lea edx, [ebp - 4]
lea eax, [ebp - 0x150]
push 0
push edx
push eax
call edi
lea ecx, [ebp - 0x150]
push eax
push ecx
push ebx
call esi
lea edx, [ebp - 0x150]
push str._r_n_r_n_r_nModule_Name_t_tReturn_Address_t_tLocation_r_n
push edx
call dword [0x4081e4]
add esp, 8
lea eax, [ebp - 4]
lea ecx, [ebp - 0x150]
push 0
push eax
push ecx
call edi
lea edx, [ebp - 0x150]
push eax
push edx
push ebx
call esi
mov eax, dword [sym.imp.IMAGEHLP.dll_SymGetModuleBase]
mov ecx, dword [sym.imp.IMAGEHLP.dll_SymFunctionTableAccess]
mov edx, dword [0x408108]
mov esi, dword [0x40811c]
push 0
push eax
push ecx
lea eax, [ebp - 0xa0c]
push edx
lea ecx, [ebp - 0x1c4]
push eax
push ecx
push 0
call esi
push eax
push 0x14c
call dword [sym.imp.IMAGEHLP.dll_StackWalk]
test eax, eax
je 0x402ff5
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c4]
mov ecx, 0x8e
lea edi, [ebp - 0x73c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c4]
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x740]
mov dword [ebp - 0x740], 0x23c
push ecx
push edx
call esi
push eax
call dword [sym.imp.IMAGEHLP.dll_SymGetModuleInfo]
test eax, eax
je 0x402e62
lea edi, [ebp - 0x724]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402e62
lea edi, [ebp - 0x724]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a610
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x402e85
mov edi, str._No_Module_Info__t_t
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x408110]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x150]
push ecx
push edx
call esi
mov edi, dword [0x40810c]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
call edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c4]
lea edx, [ebp - 0xc]
push ecx
push edx
push eax
call dword [0x40811c]
push eax
call dword [sym.imp.IMAGEHLP.dll_SymGetSymFromAddr]
mov ecx, dword [ebp - 0x1b8]
lea edx, [ebp - 0x150]
push ecx
push str._08x_t_t
push edx
mov dword [ebp + 8], eax
call dword [0x4081e4]
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x150]
push 0
push eax
push ecx
call esi
lea edx, [ebp - 0x150]
push eax
push edx
push ebx
call edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x402fa4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x404]
push 0x100
push eax
push ecx
call dword [sym.imp.IMAGEHLP.dll_SymUnDName]
test eax, eax
je 0x402fda
lea edx, [ebp - 0x404]
test edx, edx
je 0x402f6e
lea eax, [ebp - 0x404]
lea ecx, [ebp - 0x150]
push eax
push 0x40a5f0
push ecx
call dword [0x4081e4]
add esp, 0xc
lea edx, [ebp - 4]
lea eax, [ebp - 0x150]
push 0
push edx
push eax
call esi
lea ecx, [ebp - 0x150]
push eax
push ecx
push ebx
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402fda
push eax
lea edx, [ebp - 0x150]
push str.___x
push edx
call dword [0x4081e4]
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x150]
push 0
push eax
push ecx
call esi
lea edx, [ebp - 0x150]
push eax
push edx
jmp 0x402fd7
mov eax, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x150]
push eax
push str._08x
push ecx
call dword [0x4081e4]
add esp, 0xc
lea edx, [ebp - 4]
lea eax, [ebp - 0x150]
push 0
push edx
push eax
call esi
lea ecx, [ebp - 0x150]
push eax
push ecx
push ebx
call edi
lea edx, [ebp - 4]
push 0
push edx
push 0x40a5dc
call esi
push eax
push 0x40a5dc
push ebx
call edi
jmp 0x402d7a
push ebx
call dword [0x408104]
push ebx
call dword [0x4080e8]
mov esi, dword [ebp - 8]
call dword [0x40811c]
push eax
call dword [sym.imp.IMAGEHLP.dll_SymCleanup]
test esi, esi
je 0x403027
push esi
push 0
call dword [0x408118]
push eax
call dword [0x408100]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10