Function at 0x4a3930
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x16c
push ebx
push ebp
mov ebp, ecx
xor eax, eax
mov ecx, 0x554e08
push esi
test ecx, ecx
push edi
mov dword [esp + 0x178], eax
lea ebx, [ebp + 0x268]
je 0x4a395b
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 0x4a399a
mov edx, dword [esp + 0x14]
mov edi, dword [ebx]
mov esi, 0x554e08
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.0049b9a0
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x4a41a3
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 0x4a3bd7
mov esi, dword [esp + 0x18]
cmp esi, 1
jne 0x4a3a37
lea edx, [esp + 0x10]
push 0xa1
mov ebx, esi
push edx
jmp 0x4a3a46
lea eax, [esp + 0x14]
push 0xa2
mov ebx, 2
push eax
call fcn.004bd990
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 0x4a3a9f
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
and ebx, 0xfffffffd
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3a9f
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a3a9f
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test bl, 1
je 0x4a3acf
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3acf
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a3acf
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 0x4a3b79
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a3b1f
mov ecx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x4a3b26
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x4a3b64
mov eax, dword [esi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00405660
test eax, eax
je 0x4a3b79
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 0x4a3b79
mov ecx, ebx
call fcn.004124c0
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.005195c0
mov ecx, dword [ebp + 0xe4]
add esp, 0x10
call fcn.004ec270
cmp dword [0x55bbf4], 4
jne 0x4a41a3
mov ecx, dword [ebp + 0xe4]
call fcn.004f0200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4
cmp esi, 1
jne 0x4a3db9
lea ecx, [esp + 0x50]
call fcn.00458dc0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], esi
call fcn.0045c460
cmp eax, 0xffffffff
je 0x4a3fb7
push eax
push esi
mov ecx, ebp
call fcn.0049f8c0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4a3fb7
mov ecx, dword [ebp + 0x1c4]
test ecx, ecx
je 0x4a3fb7
push eax
lea ecx, [esp + 0x2c]
call fcn.00510710
mov ecx, dword [0x547570]
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.00517400
mov eax, dword [0x55bbf4]
add esp, 0x110
cmp eax, 4
jne 0x4a3d03
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x4a3d07
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a3ca5
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a3cac
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a3cec
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 0x4a3d03
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 0x4a3d03
mov ecx, ebx
call fcn.004124c0
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 0x4a3f70
mov eax, dword [ebp + 0x1c4]
mov dword [esp + 0x1c], 0x20088000
test eax, eax
je 0x4a3d36
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 0x4a3f7f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4a3f7f
cmp eax, 0xffffffff
je 0x4a3f7f
cmp dword [0x55f254], 1
jle 0x4a3e35
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3da7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a3da7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00510740
lea ecx, [esp + 0x50]
call fcn.00458f90
mov eax, dword [0x55bbf4]
mov ebx, 4
cmp eax, ebx
jne 0x4a3dd2
mov ecx, dword [ebp + 0xe4]
call fcn.004f0200
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 [0x55f254]
xor ecx, ecx
cmp edx, esi
sete cl
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xe4]
call fcn.004ec270
mov esi, dword [esp + 0x20]
cmp esi, 1
jne 0x4a3ff0
lea edx, [esp + 0x1c]
push 0x9f
push edx
jmp 0x4a3fff
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 0x4a3ee5
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4a3e87
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4a3e8e
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4a3ece
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 0x4a3ee5
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 0x4a3ee5
mov ecx, ebx
call fcn.004124c0
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.005195c0
mov eax, dword [0x55bbf4]
add esp, 0x10
cmp eax, 4
jne 0x4a3f22
mov ecx, dword [ebp + 0xe4]
call fcn.004f0200
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3f51
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a3f51
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00510740
lea ecx, [esp + 0x50]
call fcn.00458f90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a3f83
push ecx
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a3fae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a3fae
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00510740
lea ecx, [esp + 0x50]
call fcn.00458f90
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.004f0200
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.004bd990
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 0x4a4056
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
and ebx, 0xfffffff7
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a4056
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a4056
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test bl, 4
je 0x4a408a
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a408a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a408a
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [ebp + 0x220]
mov esi, dword [edi]
lea ebx, [ebp + 0x220]
cmp eax, esi
je 0x4a4135
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jge 0x4a40b5
lea edx, [eax - 0xc]
cmp edx, dword [0x547574]
jne 0x4a40bc
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x4a40fa
mov eax, dword [esi - 8]
mov ecx, ebx
push eax
mov dword [esp + 0x1c], eax
call fcn.00405660
test eax, eax
je 0x4a4135
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 0x4a4135
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
je 0x4a4127
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a4120
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x547570]
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.005195c0
mov eax, dword [0x55f254]
add esp, 0x10
test eax, eax
je 0x4a4198
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4a41a3
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.004a41b0
cmp eax, 0xffffffff
jne 0x4a4198
push esi
push edi
push ebx
mov ecx, ebp
call fcn.004a4de0
mov ecx, dword [ebp + 0xe4]
call fcn.004ec270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 4