Function at 0x48009349
Capabilities:
Create directory
Get file size
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
mov ebx, 0x105
push ebx
push 0x48024498
lea eax, [ebp - 0x254]
xor edi, edi
push eax
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x1c], edi
call esi
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x480093ad
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.4800ac55
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
push ebx
push edi
lea eax, [ebp - 0x254]
push eax
call esi
lea eax, [edi - 0x10]
call fcn.48001fbe
xor edi, edi
cmp dword [ebp + 0x14], edi
mov eax, dword [ebp + 8]
seta byte [ebp - 1]
cmp eax, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
je 0x480093df
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x480093df
cmp dword [0x48027470], eax
jne 0x480093df
mov al, 1
jmp 0x480099b3
cmp byte [0x48027474], 0
je 0x480093f6
mov esi, 0x65a0bc00
mov dword [ebp - 0x2c], 1
jmp 0x48009402
mov esi, 0x28e44000
mov dword [ebp - 0x2c], 0x580
call fcn.4800df61
mov ecx, dword [0x4802746c]
sub eax, esi
sbb edx, dword [ebp - 0x2c]
cmp ecx, edx
ja 0x48009428
jb 0x48009422
mov ecx, dword [0x48027468]
cmp ecx, eax
jae 0x48009428
mov dword [0x48027460], edi
xor eax, eax
cmp byte [0x48027474], al
setne al
inc eax
cmp dword [0x48027460], eax
jge 0x480093d8
inc dword [0x48027460]
cmp byte [ebp - 1], 0
je 0x48009533
push dword [ebp + 0x14]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x480099b1
lea ecx, [ebp - 8]
mov byte [ebp - 0xd], 1
call fcn.480017fe
mov edx, ebx
lea esi, [ebp - 8]
call fcn.48001c88
push 0x104
push eax
push edi
push dword [ebp - 0xc]
call fcn.4800e7a9
add esp, 0x10
or eax, 0xffffffff
mov ecx, esi
call fcn.480018d3
mov esi, dword [ebp - 8]
mov di, 0x5c
call fcn.480020af
test eax, eax
je 0x480094d9
mov ecx, dword [ebp - 8]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x480094d9
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp - 0x14]
push eax
dec ecx
lea eax, [ebp - 8]
call fcn.48004e19
lea edi, [ebp - 8]
call fcn.480052cc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.48001fbe
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x20], esi
je 0x48009523
lea eax, [ebp - 0x2c]
push eax
push 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.48001fbe
jmp 0x4800964c
call fcn.480072e1
mov dword [ebp + 0x14], eax
push str.GoogleDesktop.exe
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x48009563
push edi
push str._GD_Index
push edi
push 0xfffffffffffffffd
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jne 0x4800958c
push 0
push str._GD_MonMD
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
mov dword [ebp + 0x14], eax
je 0x48009637
lea ecx, [ebp - 0x14]
push ecx
push 0x7d0
xor eax, eax
push 1
push eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x48009628
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
call ebx
push str.asking_mon_trs_to_do_minidump_n
mov dword [ebp - 0x2c], eax
call edi
call esi
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
call esi
push eax
push 0x439
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 1
jne 0x48009628
call fcn.4800df61
mov dword [0x48027468], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [0x4802746c], edx
je 0x480093d8
mov dword [0x48027470], eax
jmp 0x480093d8
call ebx
and dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push str.self_minidump_n
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp + 0x14], eax
call fcn.48007965
test al, al
je 0x480093d8
push str.dbghelp
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x480099b1
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x480099b1
lea ebx, [ebp - 8]
call fcn.4800ad1f
cmp byte [0x48027474], 0
je 0x480096a5
push str.c:gdd_
mov eax, ebx
push eax
call fcn.48004f15
lea esi, [ebp - 0x38]
call fcn.48009311
xor edi, edi
push edi
lea esi, [ebp - 0x14]
mov ebx, eax
call fcn.48009289
push dword [ebx]
push dword [eax]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xa58]
push str._s_s__s__s.dmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x14]
add esp, 0x1c
add eax, 0xfffffff0
call fcn.48001fbe
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.48001fbe
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x2c], esi
je 0x480099a6
cmp byte [0x48027474], 0
push 0xc
pop ebx
je 0x48009736
push 0x44
pop ebx
cmp byte [ebp + 0x10], 0
je 0x4800973f
push 0x45
pop ebx
push edi
push 4
push str.minidump_type
lea ecx, [ebp - 0x38]
mov eax, str.HKCUSoftwareGoogleGoogle_Desktop
call fcn.480085f9
add esp, 0xc
test eax, eax
jl 0x48009767
mov ebx, dword [ebp - 0x38]
cmp ebx, 0xffffffff
je 0x48009996
mov eax, dword [ebp + 8]
push edi
neg eax
push edi
sbb eax, eax
lea ecx, [ebp - 0x28]
and eax, ecx
push eax
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebp - 0xd], 0
mov ebx, eax
mov dword [ebp - 0x3c], ebx
je 0x480097a4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jbe 0x480098ef
cmp ebx, 0xffffffff
je 0x480098ef
mov al, byte [0x48027474]
neg al
sbb eax, eax
and eax, 0x1dc0000
add eax, 0x40000
cmp ebx, eax
ja 0x480098ef
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov dword [ebp + 0x14], edi
call fcn.48006340
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
je 0x480098e6
push edi
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x480098e6
cmp dword [ebp + 0x14], ebx
jne 0x480098e6
lea ecx, [ebp + 8]
call fcn.480017fe
lea esi, [ebp - 0xc]
call fcn.48009311
push 1
lea esi, [ebp - 0x18]
mov ebx, eax
call fcn.48009289
mov dword [esp], str.111506_180233
push dword [ebx]
push dword [eax]
lea eax, [ebp - 0x254]
push eax
push str.minidump
lea eax, [ebp + 8]
push str._s_app_s_sid_sversion_hs
push eax
call fcn.48007b29
mov eax, dword [ebp - 0x18]
add esp, 0x1c
add eax, 0xfffffff0
call fcn.48001fbe
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.48001fbe
lea ecx, [ebp - 0xc]
call fcn.480017fe
lea eax, [ebp - 0xc]
push eax
call fcn.480078b8
test eax, eax
mov esi, dword [ebp - 0xc]
pop ecx
jl 0x4800988e
push dword [esi - 0xc]
lea eax, [ebp + 8]
push esi
push eax
call fcn.48001d00
push edi
lea ebx, [ebp - 0x18]
call fcn.4800a538
mov ebx, dword [ebp + 8]
mov edi, dword [eax]
mov dword [esp], str.Content_Type:_binary
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
push ebx
push 0
call fcn.4800a5b7
pop ecx
push eax
push edi
call fcn.4800f7a9
mov edi, eax
mov eax, dword [ebp - 0x18]
add esp, 0x18
add eax, 0xfffffff0
call fcn.48001fbe
test edi, edi
jl 0x480098d1
mov byte [ebp - 1], 1
lea eax, [esi - 0x10]
call fcn.48001fbe
lea eax, [ebx - 0x10]
call fcn.48001fbe
mov esi, dword [ebp - 0x2c]
xor edi, edi
push dword [ebp - 0x14]
call fcn.4800606e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], 0
je 0x480099a6
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov ebx, 0x4801b36c
je 0x4800992d
push edi
push 4
push ebx
mov dword [0x48027470], eax
mov dword [ebp + 8], eax
call fcn.48004f3b
push eax
lea esi, [ebp + 8]
mov edi, str.md_signature
call fcn.4800a1c4
xor edi, edi
call fcn.4800df61
push edi
push 5
push ebx
mov dword [0x48027468], eax
mov dword [0x4802746c], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.48004f3b
push eax
lea esi, [ebp - 0x30]
mov edi, str.md_time
call fcn.4800a1c4
and dword [ebp + 0x14], 0
push 0
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
call fcn.48004f3b
push eax
lea esi, [ebp + 0xb]
mov edi, str.md_num
call fcn.4800a2d0
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
push 0
push 4
push ebx
mov dword [ebp + 8], eax
call fcn.48004f3b
push eax
lea esi, [ebp + 8]
call fcn.4800a1c4
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.48001fbe
jmp 0x480093d8
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.48001fbe
xor al, al
pop edi
pop esi
pop ebx
leave
ret