Function at 0x4a29e0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x16c
push ebx
push ebp
mov ebp, ecx
xor eax, eax
mov ecx, 0x553d98
push esi
test ecx, ecx
push edi
mov dword [esp + 0x178], eax
lea ebx, [ebp + 0x268]
je 0x4a2a0b
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00405660
test eax, eax
je 0x4a2a4a
mov edx, dword [esp + 0x14]
mov edi, dword [ebx]
mov esi, 0x553d98
lea eax, [edx + edx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
mov ecx, dword [ebx]
mov word [eax + ecx], 0
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.0049aa50
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x4a3253
push 0
push 0
push 0x1032
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, eax
push 0x1004
push edi
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x18], eax
mov dword [ebp + 0xac], edi
mov dword [ebp + 0xb4], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [ebp + 0xb0], esi
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 1
jne 0x4a2c87
mov esi, dword [esp + 0x18]
cmp esi, 1
jne 0x4a2ae7
lea edx, [esp + 0x10]
push 0xa1
mov ebx, esi
push edx
jmp 0x4a2af6
lea eax, [esp + 0x14]
push 0xa2
mov ebx, 2
push eax
call fcn.004bc8d0
mov eax, dword [eax]
add esp, 8
lea edi, [ebp + 0x21c]
push eax
push esi
push str._d__s
push edi
call fcn.00405cb0
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x10
test bl, 2
je 0x4a2b4f
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2b4f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a2b4f
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test bl, 1
je 0x4a2b7f
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2b7f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a2b7f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, dword [ebp + 0xe4]
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], 1
push eax
mov edx, dword [ecx + 0x224]
push 0x851f
push 0x440
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x220]
mov esi, dword [edi]
lea ebx, [ebp + 0x220]
cmp eax, esi
je 0x4a2c29
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a2bcf
mov ecx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x4a2bd6
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x4a2c14
mov eax, dword [esi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00405660
test eax, eax
je 0x4a2c29
mov eax, dword [esp + 0x14]
mov edi, dword [ebx]
add eax, eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
mov ecx, dword [ebx]
mov word [ecx + eax], 0
jmp 0x4a2c29
mov ecx, ebx
call fcn.00412670
mov edi, dword [edi]
mov dword [ebx], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x80
push ecx
lea eax, [ebp + 0x21c]
mov ecx, esp
push eax
call fcn.00405440
mov edx, dword [ebp + 0xe4]
push 0x851f
mov eax, dword [edx + 0x224]
push eax
call fcn.00518960
mov ecx, dword [ebp + 0xe4]
add esp, 0x10
call fcn.004eb6b0
cmp dword [0x55ab54], 4
jne 0x4a3253
mov ecx, dword [ebp + 0xe4]
call fcn.004ef640
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4
cmp esi, 1
jne 0x4a2e69
lea ecx, [esp + 0x50]
call fcn.004584c0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], esi
call fcn.0045bb60
cmp eax, 0xffffffff
je 0x4a3067
push eax
push esi
mov ecx, ebp
call fcn.0049e970
test eax, eax
mov dword [esp + 0x14], eax
je 0x4a3067
mov ecx, dword [ebp + 0x1c4]
test ecx, ecx
je 0x4a3067
push eax
lea ecx, [esp + 0x2c]
call fcn.0050fe10
mov ecx, dword [0x546560]
mov eax, dword [ebp + 0x1c4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x70]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
push 0x8000
push ecx
push eax
call dword [edx + 0x2c]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, 0x42
sub esp, 0x108
lea esi, [esp + 0x180]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0050c1d0
mov eax, dword [0x55ab54]
add esp, 0x110
cmp eax, 4
jne 0x4a2db3
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x4a2db7
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a2d55
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a2d5c
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a2d9c
mov esi, eax
mov eax, dword [eax - 8]
push eax
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.00405660
test eax, eax
je 0x4a2db3
mov eax, dword [esp + 0x1c]
mov edi, dword [ebx]
add eax, eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
mov ecx, dword [ebx]
mov word [eax + ecx], 0
jmp 0x4a2db3
mov ecx, ebx
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4a3020
mov eax, dword [ebp + 0x1c4]
mov dword [esp + 0x1c], 0x20088000
test eax, eax
je 0x4a2de6
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
call dword [edx + 0x24]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHELL32.dll_ILFree]
test dword [esp + 0x1c], 0x20000000
je 0x4a302f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4a302f
cmp eax, 0xffffffff
je 0x4a302f
cmp dword [0x55e19c], 1
jle 0x4a2ee5
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a2e57
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a2e57
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0050fe40
lea ecx, [esp + 0x50]
call fcn.00458690
mov eax, dword [0x55ab54]
mov ebx, 4
cmp eax, ebx
jne 0x4a2e82
mov ecx, dword [ebp + 0xe4]
call fcn.004ef640
mov edx, dword [ebp + 0xe4]
mov esi, 2
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], esi
mov eax, dword [edx + 0x224]
push ecx
push 0x851f
push 0x440
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x55e19c]
xor ecx, ecx
cmp edx, esi
sete cl
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xe4]
call fcn.004eb6b0
mov esi, dword [esp + 0x20]
cmp esi, 1
jne 0x4a30a0
lea edx, [esp + 0x1c]
push 0x9f
push edx
jmp 0x4a30af
mov ecx, dword [ebp + 0xe4]
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], 3
push eax
mov edx, dword [ecx + 0x224]
push 0x851f
push 0x440
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x220]
mov ecx, dword [esp + 0x10]
lea ebx, [ebp + 0x220]
cmp eax, ecx
je 0x4a2f95
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4a2f37
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4a2f3e
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4a2f7e
mov esi, ecx
mov ecx, dword [ecx - 8]
mov dword [esp + 0x18], ecx
push ecx
mov ecx, ebx
call fcn.00405660
test eax, eax
je 0x4a2f95
mov eax, dword [esp + 0x18]
mov edi, dword [ebx]
add eax, eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
mov ecx, dword [ebx]
mov word [eax + ecx], 0
jmp 0x4a2f95
mov ecx, ebx
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x80
push ecx
mov ecx, esp
push ebx
call fcn.00405440
mov edx, dword [ebp + 0xe4]
push 0x851f
mov eax, dword [edx + 0x224]
push eax
call fcn.00518960
mov eax, dword [0x55ab54]
add esp, 0x10
cmp eax, 4
jne 0x4a2fd2
mov ecx, dword [ebp + 0xe4]
call fcn.004ef640
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3001
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a3001
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0050fe40
lea ecx, [esp + 0x50]
call fcn.00458690
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a3033
push ecx
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a305e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a305e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0050fe40
lea ecx, [esp + 0x50]
call fcn.00458690
mov eax, dword [ebp + 4]
push 0
push 0x1b208
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0xe4]
mov esi, eax
call fcn.004ef640
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4
lea eax, [esp + 0x18]
push 0xa0
mov ebx, 8
push eax
call fcn.004bc8d0
mov eax, dword [eax]
add esp, 8
lea edi, [ebp + 0x21c]
push eax
push esi
push str._d__s
push edi
call fcn.00405cb0
add esp, 0x10
test bl, 8
je 0x4a3106
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
and ebx, 0xfffffff7
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3106
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a3106
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test bl, 4
je 0x4a313a
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a313a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a313a
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [ebp + 0x220]
mov esi, dword [edi]
lea ebx, [ebp + 0x220]
cmp eax, esi
je 0x4a31e5
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jge 0x4a3165
lea edx, [eax - 0xc]
cmp edx, dword [0x546564]
jne 0x4a316c
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x4a31aa
mov eax, dword [esi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.00405660
test eax, eax
je 0x4a31e5
mov eax, dword [esp + 0x18]
mov edi, dword [ebx]
add eax, eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], edx
mov ecx, dword [ebx]
mov word [eax + ecx], 0
jmp 0x4a31e5
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
je 0x4a31d7
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a31d0
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
mov dword [ebx], eax
mov eax, dword [edi]
mov dword [ebx], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x80
push ecx
lea eax, [ebp + 0x21c]
mov ecx, esp
push eax
call fcn.00405440
mov ecx, dword [ebp + 0xe4]
push 0x851f
mov edx, dword [ecx + 0x224]
push edx
call fcn.00518960
mov eax, dword [0x55e19c]
add esp, 0x10
test eax, eax
je 0x4a3248
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4a3253
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
push esi
push edi
push ebx
mov ecx, ebp
call fcn.004a3260
cmp eax, 0xffffffff
jne 0x4a3248
push esi
push edi
push ebx
mov ecx, ebp
call fcn.004a3e90
mov ecx, dword [ebp + 0xe4]
call fcn.004eb6b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4