Function at 0x47d2c0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x428], ecx
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x424], ecx
lea ecx, [ebp - 0x214]
push 0x104
push ecx
push eax
mov dword [ebp - 0x420], ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x47d362
call fcn.00438e90
cmp eax, 2
jg 0x47d341
mov ebx, 1
call sub.KERNEL32.DLL_GetLastError
push eax
push 2
push 0x33
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0x4e0]
call fcn.004384e0
add eax, 0x10
push str.GetProcessImageFileName_failed
push eax
call fcn.00404c5e
add esp, 8
test bl, 1
je 0x47d351
lea ecx, [ebp - 0x4e0]
call fcn.00438780
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0047d170
mov esi, eax
test esi, esi
je 0x47d462
mov eax, dword [0x4b7858]
mov edi, esi
mov dword [ebp - 0xc], eax
mov ax, word [0x4b785c]
mov word [ebp - 8], ax
jmp 0x47d390
mov ax, word [edi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x47d484
lea ebx, [ebp - 0x41c]
lea ecx, [ebx + 2]
mov edi, edi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x47d3c0
sub ebx, ecx
lea eax, [ebp - 0x41c]
sar ebx, 1
push ebx
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0048e157
add esp, 0xc
test eax, eax
jne 0x47d3f9
cmp word [ebp + ebx*2 - 0x214], 0x5c
je 0x47d4f1
mov ebx, dword [ebp - 0x420]
cmp word [edi], 0
je 0x47d40e
add edi, 2
cmp word [edi], 0
jne 0x47d405
add edi, 2
cmp word [edi], 0
jne 0x47d390
call fcn.00438e90
test eax, eax
jg 0x47d452
or ebx, 8
call sub.KERNEL32.DLL_GetLastError
push eax
push 0
push 0x64
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0x4e0]
call fcn.004384e0
add eax, 0x10
push str.Could_not_convert_process_image_file_name
push eax
call fcn.00404c5e
add esp, 8
test bl, 8
je 0x47d462
lea ecx, [ebp - 0x4e0]
call fcn.00438780
xor bl, bl
test esi, esi
je 0x47d471
push esi
call fcn.004835e0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486d53
mov esp, ebp
pop ebp
ret
call fcn.00438e90
cmp eax, 2
jg 0x47d4cf
or ebx, 4
mov dword [ebp - 0x420], ebx
call sub.KERNEL32.DLL_GetLastError
push eax
push 2
push 0x5a
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0x4e0]
call fcn.004384e0
lea ecx, [ebp - 0xc]
add eax, 0x10
push ecx
push str.QueryDosDevice_failed_for
push eax
call fcn.00404c5e
add esp, 8
push eax
call fcn.00438950
add esp, 8
test bl, 4
je 0x47d3ff
and ebx, 0xfffffffb
lea ecx, [ebp - 0x4e0]
mov dword [ebp - 0x420], ebx
call fcn.00438780
jmp 0x47d3ff
lea edi, [ebp - 0x214]
lea ecx, [edi + 2]
lea ebx, [ebx]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x47d500
sub edi, ecx
sar edi, 1
sub edi, ebx
add edi, 2
lea eax, [edi + 1]
cmp dword [ebp - 0x424], eax
jae 0x47d593
call fcn.00438e90
mov ebx, dword [ebp - 0x420]
cmp eax, 2
jg 0x47d57a
push 2
push 0x50
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktopwindowscrash_reporterprocess_state_impl.cc
lea ecx, [ebp - 0x4d8]
or ebx, 2
call fcn.00438400
push edi
push str.__path_length
push dword [ebp - 0x424]
add eax, 8
push str.max_path
push eax
call fcn.00404c5e
add esp, 8
mov ecx, eax
call fcn.004121ba
push eax
call fcn.00404c5e
add esp, 8
mov ecx, eax
call fcn.004121ba
test bl, 2
je 0x47d462
lea ecx, [ebp - 0x4d8]
call fcn.00438510
jmp 0x47d462
mov edi, dword [ebp - 0x428]
lea ecx, [ebp - 0xc]
mov edx, edi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x47d5a2
lea ecx, [ebp - 0x214]
lea ecx, [ecx + ebx*2]
sub edi, ecx
lea ecx, [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx + 2], ax
test ax, ax
jne 0x47d5c0
mov bl, 1
jmp 0x47d464