Function at 0x402d80
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42defb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0x44
push esi
push 0x43e830
mov edi, ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], esi
call fcn.0041ce00
mov edx, dword [section..data]
xor eax, eax
mov ecx, 5
mov dword [0x43e820], eax
mov dword [0x43e824], eax
mov dword [0x43e828], eax
mov dword [0x43e82c], eax
mov eax, dword [edx + 0xc]
mov word [0x43e860], cx
add esp, 0xc
mov ecx, section..data
mov dword [0x43e830], 0x44
mov dword [0x43e85c], 1
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x402e37
push 0x80070057
call fcn.00401560
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x402e5b
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.00403ef0
mov eax, dword [ebp - 0x21c]
mov ecx, 0x22
mov word [eax + ebx*2], cx
cmp esi, dword [eax - 8]
jg 0x402e2d
xor edx, edx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], dx
test edi, edi
jne 0x402e7a
xor eax, eax
jmp 0x402e8f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e80
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x21c]
call fcn.00403e30
mov eax, dword [ebp - 0x21c]
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x402eb6
push 0x80070057
call fcn.00401560
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x402eda
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.00403ef0
mov eax, dword [ebp - 0x21c]
mov ecx, 0x22
mov word [eax + ebx*2], cx
cmp esi, dword [eax - 8]
jg 0x402e2d
mov dword [eax - 0xc], esi
xor edx, edx
mov word [eax + esi*2], dx
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x402f09
push 0x80070057
call fcn.00401560
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x402f2d
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.00403ef0
mov eax, dword [ebp - 0x21c]
mov ecx, 0x20
mov word [eax + ebx*2], cx
cmp esi, dword [eax - 8]
jg 0x402e2d
xor edx, edx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], dx
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x402f56
xor eax, eax
jmp 0x402f6f
mov eax, esi
lea edx, [eax + 2]
jmp 0x402f60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402f60
sub eax, edx
sar eax, 1
push eax
push esi
lea ebx, [ebp - 0x21c]
call fcn.00403e30
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x402f9e
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00403b10
mov ebx, dword [ebp - 0x21c]
push 0x43e820
push 0x43e830
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
call dword [0x4300f4]
test eax, eax
je 0x40308a
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0041ce00
mov edx, dword [0x43e820]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edx
xor edi, edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jle 0x40306c
lea esi, [ebp + eax*2 - 0x21a]
lea eax, [ebp - 0x218]
cmp esi, eax
jb 0x40306c
movzx eax, word [esi]
cmp eax, 0x5c
je 0x403035
cmp eax, 0x2f
je 0x403035
lea ecx, [ebp - 0x218]
inc edi
cmp esi, ecx
jbe 0x403038
sub esi, 2
mov edx, ecx
cmp esi, edx
jae 0x403012
jmp 0x403038
add esi, 2
test edi, edi
jle 0x40306c
push esi
call fcn.0041b2d7
add esp, 4
call fcn.00416e70
cmp eax, 0x53da980c
je 0x40305f
cmp eax, 0x7c44b63d
je 0x40305f
push 0xbbd
jmp 0x403064
push 0xbc7
call fcn.00407370
add esp, 4
mov eax, dword [0x43e820]
mov esi, dword [0x430108]
push eax
call esi
mov ecx, dword [0x43e824]
push ecx
call esi
mov esi, 1
jmp 0x403090
mov esi, dword [ebp - 0x224]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0041b407
add esp, 8
test eax, eax
js 0x402e2d
cmp eax, dword [ebx - 8]
jg 0x402e2d
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ad7d
mov esp, ebp
pop ebp
ret 4