Function at 0x402140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push 0x4551fc
lea ecx, [esp + 8]
call fcn.00428b38
push 0x4551f4
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0
call fcn.00428b38
push 0x4551ec
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 1
call fcn.00428b38
push 0x4551e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call fcn.00428b38
push 0x4551dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.00428b38
push 0x4551d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 4
call fcn.00428b38
push 0x4551cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 5
call fcn.00428b38
push 0x4551c4
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 6
call fcn.00428b38
push 0x4551bc
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 7
call fcn.00428b38
push 0x4551b4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 8
call fcn.00428b38
push 0x4551ac
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 9
call fcn.00428b38
push 0x4551a4
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0xa
call fcn.00428b38
push 0x45519c
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 0xb
call fcn.00428b38
push 0x455194
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0xc
call fcn.00428b38
push 0x45518c
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 0xd
call fcn.00428b38
push 0x455184
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 0xe
call fcn.00428b38
mov byte [esp + 0x54], 0xf
push str.COM17
lea ecx, [esp + 0x48]
call fcn.00428b38
push str.COM18
lea ecx, [esp + 0x4c]
mov byte [esp + 0x58], 0x10
call fcn.00428b38
mov eax, dword [0x455164]
mov bl, 1
cmp eax, 1
jl 0x4022be
cmp eax, 9
jle 0x4022c8
mov eax, 1
mov dword [0x455164], eax
mov eax, dword [esp + eax*4]
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4022ec
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00428aca
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 0xf
call fcn.00428aca
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0xe
call fcn.00428aca
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xd
call fcn.00428aca
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0xc
call fcn.00428aca
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 0xb
call fcn.00428aca
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0xa
call fcn.00428aca
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 9
call fcn.00428aca
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 8
call fcn.00428aca
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 7
call fcn.00428aca
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 6
call fcn.00428aca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 5
call fcn.00428aca
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 4
call fcn.00428aca
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call fcn.00428aca
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 2
call fcn.00428aca
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], 1
call fcn.00428aca
lea ecx, [esp + 8]
mov byte [esp + 0x54], 0
call fcn.00428aca
lea ecx, [esp + 4]
mov dword [esp + 0x54], 0xffffffff
call fcn.00428aca
mov ecx, dword [esp + 0x4c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret