Function at 0x402940
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
lea eax, [esi + 0x6298]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004031a0
lea edx, [ebp - 0x18]
push edx
mov edi, 0x4365c8
mov dword [ebp - 4], 0
call fcn.00402f90
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x6278]
push eax
push str.CRASHID_s_r_n
lea edi, [ebp - 0x10]
call fcn.004043d0
mov eax, dword [esi + 0x627c]
push eax
push str.EXEPATH_s_r_n
call fcn.00405340
mov eax, dword [esi + 0x14]
push eax
push str.THREADID_u_r_n
call fcn.00405340
add esp, 0x18
test ebx, ebx
je 0x4029ff
cmp word [ebx], 0
je 0x4029ff
push ebx
push str.REPORTTYPE_s_r_n
call fcn.00405340
add esp, 8
push 2
push 0x42b164
lea ebx, [ebp - 0x10]
call fcn.00403e30
lea ecx, [ebp - 0x14]
call fcn.0040a480
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00403e30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x42b164
lea ebx, [ebp - 0x10]
call fcn.00403e30
add esi, 0x2300
jne 0x402a64
xor eax, eax
jmp 0x402a7f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a70
sub eax, edx
sar eax, 1
push eax
push esi
lea ebx, [ebp - 0x10]
call fcn.00403e30
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ebx, esi
call fcn.00408c80
test eax, eax
je 0x402acf
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [ebp - 0x18]
push ecx
push edx
push eax
call fcn.004038a0
mov ecx, 0x3ffffffe
sub ecx, dword [ebp - 0x20]
cmp ecx, 1
jae 0x402ac5
push str.list_T__too_long
call fcn.0040b1f8
inc dword [ebp - 0x20]
mov dword [edi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov edx, dword [0x4365c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.dump.tar.gz
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x402b20
mov ecx, eax
movzx edi, cx
push edi
call fcn.00407e50
add esp, 4
test eax, eax
je 0x402b33
push eax
mov eax, edi
lea edi, [ebp - 0x14]
call fcn.00408050
jmp 0x402b33
push str.dump.tar.gz
lea edx, [ebp - 0x14]
push edx
mov ebx, 0xb
call fcn.00408270
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040aa60
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00409570
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0x24]
call fcn.00403850
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040b2be
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret