Function at 0x402784
Capabilities:
Get file attributes

Disassembly:
push edi
push ebp
push eax
mov eax, 0x1144
call fcn.00406d70
mov eax, dword [esp + 0x1144]
mov ebp, eax
lea edx, [esp + 0x808]
push 0x108
push 0
push edx
call fcn.0040e80c
add esp, 0xc
lea edx, [esp + 0x808]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
push edx
push edx
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov edi, eax
mov edx, dword [0x6230e4]
add edx, edi
push 0
push edx
push 0x102f
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0xd10], 0
test edi, edi
jbe 0x402be3
xor eax, eax
mov dword [esp + 0x1144], edi
mov dword [esp + 0x1110], ebx
mov dword [esp + 0x1114], esi
mov ebx, eax
lea edx, [esp + 0xd10]
push 0x104
push edx
push ebx
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
lea edi, [esp + 0xd10]
lea esi, [esp + 0x808]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40285d
or dl, dl
je 0x402859
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40285d
add edi, 2
add esi, 2
or dl, dl
jne 0x40283d
xor eax, eax
jmp 0x402862
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40286c
inc ebx
jmp 0x402bc6
mov edx, dword [0x6230e4]
test edx, edx
jbe 0x402c17
xor eax, eax
mov dword [esp + 0x1140], ebp
mov ebp, eax
mov dword [esp + 0x1120], 3
mov dword [esp + 0x1130], 0x400
lea edx, [esp + 0x910]
mov dword [esp + 0x112c], edx
lea ecx, [esp + 0x1118]
push ecx
push ebp
push 0x102d
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0xd10]
lea esi, [esp + 0x910]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4028f1
or dl, dl
je 0x4028ed
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4028f1
add edi, 2
add esi, 2
or dl, dl
jne 0x4028d1
xor eax, eax
jmp 0x4028f6
sbb eax, eax
or eax, 1
test eax, eax
je 0x402bfd
inc ebp
cmp ebp, dword [0x6230e4]
jb 0x402885
mov ebp, dword [esp + 0x1140]
lea eax, [esp + 0x408]
lea edx, [esp + 0xd10]
call fcn.00402c24
lea edx, [esp + 0xd10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x402a5c
mov dword [0x6230f8], 3
lea edx, [esp + 0x408]
mov dword [0x62310c], edx
mov dword [0x623114], 1
xor ecx, ecx
mov dword [0x6230fc], ecx
mov dword [0x623100], ecx
push 0x6230f8
push ecx
push 0x1007
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [esp + 0x910]
mov edi, 0x625bb4
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x402991
mov ecx, 1
mov dword [0x6230f8], ecx
lea edx, [esp + 0x910]
mov dword [0x62310c], edx
xor esi, esi
mov dword [0x6230fc], esi
mov dword [0x623100], ecx
push 0x6230f8
push esi
push 0x1006
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x6230f8], 1
mov edx, dword [0x41de10]
mov dword [0x62310c], edx
xor ecx, ecx
mov dword [0x6230fc], ecx
mov dword [0x623100], 2
push 0x6230f8
push ecx
push 0x1006
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x6230f8], 1
lea edx, [esp + 0xd10]
mov dword [0x62310c], edx
xor ecx, ecx
mov dword [0x6230fc], ecx
mov dword [0x623100], 3
push 0x6230f8
push ecx
push 0x1006
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402b8c
mov dword [0x6230f8], 3
lea edx, [esp + 0x408]
mov dword [0x62310c], edx
xor ecx, ecx
mov dword [0x623114], ecx
mov dword [0x6230fc], ecx
mov dword [0x623100], ecx
push 0x6230f8
push ecx
push 0x1007
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xd10]
call fcn.00402cb4
lea edx, [eax + 0x3ff]
sar edx, 9
shr edx, 0x16
lea ecx, [edx + eax + 0x3ff]
sar ecx, 0xa
lea esi, [esp + 8]
push ecx
push 0x625bb8
push esi
call fcn.0040612c
add esp, 0xc
mov ecx, 1
mov dword [0x6230f8], ecx
lea edx, [esp + 8]
mov dword [0x62310c], edx
xor esi, esi
mov dword [0x6230fc], esi
mov dword [0x623100], ecx
push 0x6230f8
push esi
push 0x1006
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x6230f8], 1
mov edx, dword [0x41de0c]
mov dword [0x62310c], edx
xor ecx, ecx
mov dword [0x6230fc], ecx
mov dword [0x623100], 2
push 0x6230f8
push ecx
push 0x1006
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x6230f8], 1
lea edx, [esp + 0xd10]
mov dword [0x62310c], edx
xor ecx, ecx
mov dword [0x6230fc], ecx
mov dword [0x623100], 3
push 0x6230f8
push ecx
push 0x1006
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [0x6230e4]
inc ebx
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ecx, ebx
sar ecx, 0x1f
sub edx, ecx
lea esi, [edx + edx]
add esi, esi
sub esi, edx
lea edi, [edx + esi*8]
add edi, edi
add edi, edi
neg edi
add edi, ebx
test edi, edi
jne 0x402bc6
push dword [0x6230e8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esp + 0x1144]
cmp ebx, edx
jb 0x40281a
mov ebx, dword [esp + 0x1110]
mov esi, dword [esp + 0x1114]
push ebp
call dword [sym.imp.SHELL32.dll_DragFinish]
mov eax, dword [0x6230d4]
call fcn.00401298
add esp, 0x1148
pop ebp
pop edi
ret
mov eax, ebp
mov ebp, dword [esp + 0x1140]
mov edx, dword [0x6230e4]
cmp eax, edx
jae 0x402912
inc ebx
jmp 0x402bc6
xor eax, eax
jmp 0x402c0c