Function at 0x416090
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49b4d4
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4d4028]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4d4028]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x20]
call fcn.00461e18
call fcn.004900d8
mov ecx, dword [eax + 4]
call fcn.004900c0
xor edi, edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov byte [esp + 0x98], 1
mov eax, dword [esi + 0x3018]
mov edx, eax
mov ecx, eax
shr ecx, 0x18
shr edx, 0x10
push edi
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], dl
push edi
mov ecx, eax
lea edx, [esp + 0x44]
mov byte [esp + 0x1f], al
push edx
lea eax, [esp + 0x20]
shr ecx, 8
push eax
mov byte [esp + 0x26], cl
call fcn.00462dd4
mov ebx, dword [esp + 0x3c]
cmp ebx, edi
jne 0x41617c
mov ecx, dword [esi + 0x3018]
push ecx
push str.Couldnt_get_device_object_for_ID_08x._n
lea eax, [edi + 8]
mov ecx, 0x7f6050
call fcn.004012c0
add esp, 8
lea eax, [esp + 0x3c]
mov byte [esp + 0x98], 0
call fcn.00403bb0
mov dword [esp + 0x98], 0xffffffff
jmp 0x416748
mov eax, ebx
call fcn.0045f59e
lea edx, [esp + 0x64]
mov edi, eax
push edx
mov eax, ebx
call fcn.0045e931
test al, al
jne 0x4161ae
push str.Couldnt_get_disc_information._n
mov eax, 8
mov ecx, 0x7f6050
call fcn.004012c0
add esp, 4
jmp 0x41615b
cmp edi, 2
je 0x4161c2
cmp edi, 0xb
je 0x4161c2
cmp edi, 3
je 0x4161c2
cmp edi, 0xc
jne 0x4161e6
cmp byte [esp + 0x65], 0
jne 0x4161e6
movzx eax, byte [esp + 0x79]
movzx edx, byte [esp + 0x7a]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4 - 3]
mov dword [esi + 0x307c], eax
jmp 0x41624b
push 0
push 0xbfa
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x307c], 0
call fcn.00403ae0
mov byte [esp + 0x98], 2
mov edx, dword [esi + 0x2dc4]
lea edi, [esi + 0x2dc4]
push 1
push eax
mov eax, dword [edx + 0x14c]
mov ecx, edi
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call dword [0x4a2ee8]
mov edx, dword [edi]
mov eax, dword [edx + 0x148]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc1c1c1
mov ecx, edi
call eax
mov ebx, dword [esi + 0x200]
xor edi, edi
cmp ebx, dword [esi + 0x204]
mov dword [esp + 0x28], edi
jbe 0x416270
call dword [0x4a3094]
jmp 0x416270
mov eax, dword [esi + 0x204]
cmp dword [esi + 0x200], eax
mov dword [esp + 0x18], eax
jbe 0x416288
call dword [0x4a3094]
lea eax, [esi + 0x1fc]
test eax, eax
je 0x416296
cmp eax, eax
je 0x41629c
call dword [0x4a3094]
cmp ebx, dword [esp + 0x18]
je 0x4162f7
lea eax, [esi + 0x1fc]
test eax, eax
jne 0x4162b2
call dword [0x4a3094]
cmp ebx, dword [esi + 0x204]
lea eax, [esi + 0x1fc]
jb 0x4162c6
call dword [0x4a3094]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
add edi, edx
adc dword [esp + 0x28], eax
cmp ebx, dword [esi + 0x204]
lea eax, [esi + 0x1fc]
jb 0x4162ef
call dword [0x4a3094]
add ebx, 0x20
jmp 0x416270
lea ecx, [esp + 0x30]
call dword [0x4a2ef4]
push 0
push 0xe10
mov byte [esp + 0xa0], 3
mov ecx, dword [esp + 0x30]
push ecx
push edi
call fcn.00492410
push 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
push 0x3c
push edx
push edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], eax
call fcn.00492350
push eax
mov eax, dword [esp + 0x38]
push 0
push 0x3c
push ebx
push eax
call fcn.004921f0
mov ecx, dword [esp + 0x20]
mov ebx, dword [0x4a2ee0]
push eax
push ecx
lea edx, [esp + 0x3c]
push str._02d:_02d:_02d
push edx
call ebx
mov eax, dword [esp + 0x44]
add esp, 0x14
push eax
lea ecx, [esi + 0x2904]
call fcn.0049016e
cmp dword [esi + 0x307c], 0
lea ecx, [esp + 0x14]
jle 0x416658
call dword [0x4a2ef4]
lea ecx, [esp + 0x18]
call dword [0x4a2ef4]
mov byte [esp + 0x98], 5
mov eax, dword [esi + 0x307c]
cdq
mov ecx, 0xe10
idiv ecx
mov ecx, 0x3c
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x307c]
mov dword [esp + 0x34], edx
cdq
idiv ecx
mov ecx, dword [esp + 0x34]
mov eax, 0x88888889
push edx
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x20]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ecx
lea edx, [esp + 0x24]
push str._02d:_02d:_02d
push edx
call ebx
mov ecx, dword [esi + 0x307c]
add esp, 0x14
cmp ecx, edi
mov eax, 0x91a2b3c5
jle 0x41651a
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 0xb
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
mov edx, edi
imul edx, edx, 0xe10
push eax
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
lea ecx, [esp + 0x20]
push str._02d:_02d:_02d
push ecx
call ebx
add esp, 0x14
push 0
push 0xbfb
lea edx, [esp + 0x2c]
push edx
call fcn.00403ae0
push eax
lea eax, [esp + 0x38]
push eax
mov edi, 0x4a3d98
mov byte [esp + 0xa0], 6
call fcn.0040a1d0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0xa8], 7
call fcn.00402df0
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 8
call dword [0x4a2ea0]
lea ecx, [esp + 0x1c]
call dword [0x4a2ee8]
lea ecx, [esp + 0x34]
call dword [0x4a2ee8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 5
call dword [0x4a2ee8]
mov eax, dword [esi + 0x2dc4]
mov edx, dword [eax + 0x14c]
lea edi, [esi + 0x2dc4]
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x148]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc1c1c1
mov ecx, edi
call edx
push 1
push 0
jmp 0x416633
sub edi, ecx
mov ecx, edi
imul ecx
add edx, ecx
sar edx, 0xb
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
mov edx, edi
imul edx, edx, 0xe10
push eax
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
lea ecx, [esp + 0x20]
push str._02d:_02d:_02d
push ecx
call ebx
add esp, 0x14
push 0
push 0xbff
lea edx, [esp + 0x3c]
push edx
call fcn.00403ae0
push eax
lea eax, [esp + 0x20]
push eax
mov edi, 0x4a3d98
mov byte [esp + 0xa0], 9
call fcn.0040a1d0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, eax
mov byte [esp + 0xa8], 0xa
call fcn.00402df0
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0xb
call dword [0x4a2ea0]
lea ecx, [esp + 0x24]
call dword [0x4a2ee8]
lea ecx, [esp + 0x1c]
call dword [0x4a2ee8]
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 5
call dword [0x4a2ee8]
mov eax, dword [esi + 0x2dc4]
mov edx, dword [eax + 0x14c]
lea edi, [esi + 0x2dc4]
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x148]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc1c1c1
mov ecx, edi
call edx
push 1
push 1
mov eax, dword [edi]
mov edx, dword [eax + 0x150]
mov ecx, edi
call edx
lea ecx, [esp + 0x18]
call dword [0x4a2ee8]
lea ecx, [esp + 0x14]
call dword [0x4a2ee8]
jmp 0x4166ee
call dword [0x4a2ef4]
push 0x1c
lea eax, [esp + 0x4c]
push eax
push 0x4d6674
mov byte [esp + 0xa4], 0xc
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [esp + 0x4c]
push 0xbfa
push eax
lea ecx, [esp + 0x1c]
call dword [0x4a2ec8]
mov byte [esp + 0x98], 0xd
mov edx, dword [esi + 0x2dc4]
mov edx, dword [edx + 0x14c]
add esi, 0x2dc4
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 3
call dword [0x4a2ee8]
mov eax, dword [esi]
mov edx, dword [eax + 0x148]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc1c1c1
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x150]
push 1
push 0
mov ecx, esi
call edx
lea ecx, [esp + 0x30]
call dword [0x4a2ee8]
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x40]
test eax, eax
mov esi, dword [esp + 0x3c]
je 0x416712
mov dword [esi + 0x4fc], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x416722
push eax
mov eax, esi
call fcn.0045c626
or edi, 0xffffffff
add dword [esi + 0x500], edi
jne 0x416741
push esi
call fcn.00463050
test al, al
jne 0x416741
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x98], edi
call fcn.004039a0
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00490f79
mov esp, ebp
pop ebp
ret