Function at 0x412d10
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50594c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x38], 0
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x150], 3
call fcn.004e52be
lea ecx, [esp + 0x160]
mov byte [esp + 0x14c], 4
push ecx
lea ecx, [esp + 0x20]
call fcn.004e52be
push 0x53c7c8
lea ecx, [esp + 0x160]
mov byte [esp + 0x150], 5
call fcn.004df577
test eax, eax
jne 0x41311d
push 0x5c
lea ecx, [esp + 0x160]
call fcn.004e5a6a
mov ebp, eax
test ebp, ebp
jge 0x412dc1
mov esi, dword [esp + 0x154]
push 0x550398
mov ecx, esi
call fcn.004e55b7
mov dword [esp + 0x38], 1
jmp 0x41338f
lea edx, [esp + 0x24]
push ebp
push edx
lea ecx, [esp + 0x164]
call fcn.004df487
mov edi, dword [esp + 0x24]
mov byte [esp + 0x14c], 6
mov esi, 0x53c7b4
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x412e0e
test cl, cl
je 0x412e0a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x412e0e
add eax, 2
add esi, 2
test cl, cl
jne 0x412de6
xor eax, eax
jmp 0x412e13
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412e21
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x412ea1
mov esi, 0x53c7a0
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x412e50
test cl, cl
je 0x412e4c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x412e50
add eax, 2
add esi, 2
test cl, cl
jne 0x412e28
xor eax, eax
jmp 0x412e55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412e60
mov edi, reloc.WSOCK32.dll_accept
jmp 0x412ea1
mov esi, 0x53c78c
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x412e8f
test cl, cl
je 0x412e8b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x412e8f
add eax, 2
add esi, 2
test cl, cl
jne 0x412e67
xor eax, eax
jmp 0x412e94
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4131a7
mov edi, SysReAllocStringLen
push 0x7c
lea ecx, [esp + 0x160]
call fcn.004df555
mov esi, eax
test esi, esi
jl 0x412eef
lea eax, [esi + 1]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x164]
call fcn.004df352
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 7
call fcn.004e5682
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], 6
call fcn.004e5549
jmp 0x412ef9
mov edx, dword [esp + 0x15c]
mov esi, dword [edx - 8]
lea eax, [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x164]
call fcn.004df487
mov ecx, dword [0x54a6a4]
mov dword [esp + 0x34], ecx
mov bl, 9
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x150], bl
call fcn.004df555
mov esi, eax
test esi, esi
jge 0x412f4f
mov esi, dword [esp + 0x154]
push 0x550398
mov ecx, esi
call fcn.004e55b7
mov dword [esp + 0x38], 1
jmp 0x413049
lea edx, [esi + 1]
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.004df352
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x150], 0xa
call fcn.004e5682
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], bl
call fcn.004e5549
sub esi, ebp
inc ebp
push esi
lea ecx, [esp + 0x24]
push ebp
push ecx
lea ecx, [esp + 0x168]
call fcn.004df375
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push 0x20019
push ebp
push eax
push edi
mov byte [esp + 0x160], 0xc
mov dword [esp + 0x3c], ebp
call dword [fcn.00550350]
cmp eax, ebp
jne 0x41307c
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x2c]
push edx
push eax
push ebp
mov edi, esi
push ecx
push esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x40], ebp
call dword [fcn.0055034c]
cmp eax, ebp
je 0x413099
cmp esi, ebp
mov ebp, dword [fcn.00550348]
je 0x413017
push esi
call ebp
xor edi, edi
mov dword [esp + 0x2c], edi
mov esi, dword [esp + 0x154]
push 0x550398
mov ecx, esi
call fcn.004e55b7
test edi, edi
mov dword [esp + 0x38], 1
je 0x413039
push edi
call ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], bl
call fcn.004e5549
lea ecx, [esp + 0x34]
mov byte [esp + 0x14c], 8
call fcn.004e5549
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 6
call fcn.004e5549
mov byte [esp + 0x14c], 5
lea ecx, [esp + 0x24]
jmp 0x41338a
mov esi, dword [esp + 0x154]
push 0x550398
mov ecx, esi
call fcn.004e55b7
mov dword [esp + 0x38], 1
jmp 0x413039
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.004dee7c
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 0xd
call fcn.004e5682
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 0xc
call fcn.004e5549
cmp esi, ebp
je 0x4130da
push esi
call dword [fcn.00550348]
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], bl
call fcn.004e5549
lea ecx, [esp + 0x34]
mov byte [esp + 0x14c], 8
call fcn.004e5549
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 6
call fcn.004e5549
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 5
call fcn.004e5549
push 0x550398
lea ecx, [esp + 0x14]
call fcn.004e55b7
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x154], 0xe
call fcn.004e52be
call fcn.00412ae0
add esp, 4
test eax, eax
je 0x413248
lea eax, [esp + 0x158]
lea ecx, [esp + 0x10]
push eax
call fcn.004e5682
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x160]
call fcn.004df40b
mov eax, dword [eax]
mov esi, 0x53c738
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4131d3
test cl, cl
je 0x4131a3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4131d3
add eax, 2
add esi, 2
test cl, cl
jne 0x41317f
xor eax, eax
jmp 0x4131d8
mov esi, dword [esp + 0x154]
push 0x550398
mov ecx, esi
call fcn.004e55b7
mov dword [esp + 0x38], 1
mov byte [esp + 0x14c], 5
lea ecx, [esp + 0x24]
jmp 0x41338a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.004e5549
test bl, bl
je 0x41322a
mov eax, dword [esp + 0x158]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x160]
call fcn.004df487
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 0xf
call fcn.004e5682
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 0xe
call fcn.004e5549
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x413248
cmp byte [eax], 0x5c
je 0x413248
push 0x53c738
lea ecx, [esp + 0x14]
call fcn.004e5925
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004e5961
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x4132e6
cmp eax, 0xffffffff
je 0x4132e6
mov edx, dword [esp + 0x10]
push edx
call esi
mov bl, 0x10
test bl, al
jne 0x4132e6
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
call fcn.004e52be
push 0x5c
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], bl
call fcn.004df555
test eax, eax
jl 0x4132d5
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004df487
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 0x11
call fcn.004e5682
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], bl
call fcn.004e5549
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 0xe
call fcn.004e5549
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
test eax, eax
je 0x413363
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.004df40b
mov eax, dword [eax]
mov esi, 0x53c738
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x413330
test cl, cl
je 0x41332c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x413330
add eax, 2
add esi, 2
test cl, cl
jne 0x413308
xor eax, eax
jmp 0x413335
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call fcn.004e5549
test bl, bl
je 0x413355
push 0x53c738
lea ecx, [esp + 0x14]
call fcn.004e5925
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.004e5961
mov esi, dword [esp + 0x154]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004e52be
mov dword [esp + 0x38], 1
mov byte [esp + 0x14c], 5
lea ecx, [esp + 0x10]
call fcn.004e5549
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 4
call fcn.004e5549
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.004e5549
lea ecx, [esp + 0x158]
mov byte [esp + 0x14c], 2
call fcn.004e5549
lea ecx, [esp + 0x15c]
mov byte [esp + 0x14c], 1
call fcn.004e5549
lea ecx, [esp + 0x160]
mov byte [esp + 0x14c], 0
call fcn.004e5549
mov ecx, dword [esp + 0x144]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x140
ret