Function at 0x405d50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46628b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x478ec8]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x18], ebx
mov dword [esp + 0x14], edi
jne 0x406188
or esi, 0xffffffff
push 0x200
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
call fcn.0042ff51
add esp, 4
push 0x46fc50
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x18], vtable.Driver.0
lea eax, [esp + 0x18]
mov dword [esp + 0x458], ebx
call fcn.00405b20
test eax, eax
jne 0x405e15
mov dword [esp + 0x458], esi
lea esi, [esp + 0x18]
mov dword [esp + 0x18], vtable.RDDevice.0
call fcn.0040fce0
mov eax, dword [esp + 0x24]
push eax
call fcn.004410ea
add esp, 4
xor eax, eax
jmp 0x40618d
lea esi, [esp + 0x18]
call fcn.0040fce0
mov ecx, dword [edi + 0x2c]
lea esi, [edi + 4]
push ecx
mov ecx, esi
call fcn.0040fa80
cmp eax, ebx
jne 0x405e60
mov dword [esp + 0x458], 0xffffffff
lea esi, [esp + 0x18]
mov dword [esp + 0x18], vtable.RDDevice.0
call fcn.0040fce0
mov edx, dword [esp + 0x24]
push edx
call fcn.004410ea
add esp, 4
xor eax, eax
jmp 0x40618d
push ebx
push ebx
push 0x7bc40
xor ebx, ebx
xor ecx, ecx
call fcn.0040fd40
test eax, eax
jne 0x405ea9
call fcn.0040fce0
mov dword [esp + 0x458], 0xffffffff
lea esi, [esp + 0x18]
mov dword [esp + 0x18], vtable.RDDevice.0
call fcn.0040fce0
mov eax, dword [esp + 0x24]
push eax
call fcn.004410ea
add esp, 4
xor eax, eax
jmp 0x40618d
push 4
push 0
push 0x72004
lea ebx, [esp + 0x4c]
xor ecx, ecx
call fcn.0040fd40
test eax, eax
je 0x405ff4
cmp dword [esp + 0x40], 0x301
jb 0x405ff4
push 4
push 0
push 0x72008
lea ebx, [esp + 0x48]
xor ecx, ecx
call fcn.0040fd40
test eax, eax
je 0x405ff4
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
push 4
setne cl
push 0
push 0x72050
lea ebx, [esp + 0x44]
mov dword [edi + 0x1c], ecx
xor ecx, ecx
call fcn.0040fd40
test eax, eax
je 0x405ff4
xor eax, eax
cmp dword [esp + 0x38], eax
jne 0x406166
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x2c]
call fcn.004063f0
test eax, eax
je 0x405ff4
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push 1
push edx
push ebx
push eax
lea eax, [esp + 0x54]
call fcn.004064c0
test eax, eax
je 0x405ff4
lea eax, [esp + 0x44]
call fcn.00405c10
mov edi, eax
lea ecx, [esp + 0x44]
cmp edi, ecx
jne 0x405ff4
mov edx, dword [edi + 6]
cmp edx, ebx
mov edx, dword [esp + 0x30]
jne 0x405f87
mov eax, dword [edi + 0xa]
cmp eax, edx
je 0x405f94
mov eax, dword [edi + 6]
xor ecx, ecx
cmp eax, ebx
jne 0x405ff4
cmp ecx, edx
jne 0x405ff4
cmp byte [edi + 4], 0
jne 0x4060f6
cmp byte [edi + 5], 0
jne 0x4060f6
xor ecx, ecx
mov eax, 0xaaa
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ff51
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405ff4
mov eax, dword [edi + 0x3e]
mov edx, dword [esp + 0x14]
xor ecx, ecx
add eax, dword [edi + 6]
push 0x3f
adc ecx, dword [edi + 0xa]
push ecx
push eax
push edx
mov eax, ebx
call fcn.004064c0
test eax, eax
jne 0x406014
push ebx
call fcn.004410ea
add esp, 4
call fcn.0040fce0
lea eax, [esp + 0x18]
mov dword [esp + 0x458], 0xffffffff
call fcn.00405b00
xor eax, eax
jmp 0x40618d
xor eax, eax
lea ecx, [ebx + 0x18]
lea esp, [esp]
mov edx, dword [ecx - 0x18]
mov esi, dword [ecx - 0x14]
or edx, esi
mov edi, dword [ecx - 0x10]
je 0x4060ab
test edi, edi
je 0x4060ab
mov edx, dword [ecx - 0xc]
mov esi, dword [ecx - 8]
or edx, esi
mov edi, dword [ecx - 4]
je 0x406094
test edi, edi
je 0x406094
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
or edx, esi
mov edi, dword [ecx + 8]
je 0x406099
test edi, edi
je 0x406099
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
or edx, esi
mov edi, dword [ecx + 0x14]
je 0x40609e
test edi, edi
je 0x40609e
mov edx, dword [ecx + 0x18]
mov esi, dword [ecx + 0x1c]
or edx, esi
mov edi, dword [ecx + 0x20]
je 0x4060a3
test edi, edi
je 0x4060a3
mov edx, dword [ecx + 0x24]
mov esi, dword [ecx + 0x28]
or edx, esi
mov edi, dword [ecx + 0x2c]
je 0x4060a8
test edi, edi
je 0x4060a8
add eax, 6
add ecx, 0x48
cmp eax, 0xaaa
jl 0x406020
jmp 0x4060ab
add eax, 1
jmp 0x4060ab
add eax, 2
jmp 0x4060ab
add eax, 3
jmp 0x4060ab
add eax, 4
jmp 0x4060ab
add eax, 5
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x30], eax
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ff51
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x34], eax
mov ecx, dword [ecx + 0x30]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push ebx
push eax
call fcn.004410f0
add esp, 0xc
push ebx
call fcn.004410ea
mov edi, dword [esp + 0x18]
add esp, 4
jmp 0x406166
mov esi, dword [esp + 0x14]
mov eax, ebx
add eax, 2
push 1
adc edx, 0
push edx
push eax
push esi
lea eax, [esp + 0x254]
call fcn.004064c0
test eax, eax
je 0x405ff9
xor ecx, ecx
mov eax, 1
mov edx, 0xc
mul edx
seto cl
mov dword [esi + 0x30], 1
neg ecx
or ecx, eax
push ecx
call fcn.0042ff51
mov edx, dword [esp + 0x34]
mov ecx, esi
mov dword [ecx + 0x34], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c4]
mov edx, dword [esp + 0x2c0]
add esp, 4
add edx, eax
mov eax, dword [ecx + 0x34]
mov dword [eax + 8], edx
mov edi, ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x18], 1
mov dword [esp + 0x458], 0xffffffff
call fcn.00405b00
mov eax, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00440e94
mov esp, ebp
pop ebp
ret