Function at 0x403ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
xor eax, eax
push edi
test ebx, ebx
je 0x403cd8
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and al, 0xfc
call fcn.0040d940
mov eax, esp
push eax
push ebx
call sub.pluk.dll_unsigned_short_int____cdecl__B2U_char_const___unsigned_short_int__
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x404000
push 0
push 0
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x20], edi
je 0x403fdf
push 0
push 0
push 0
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x403fb4
cmp word [ebx], 0x5a4d
jne 0x403fa8
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov dword [ebp - 0x1c], edi
cmp dword [edi], 0x4550
jne 0x403fa8
push edi
push str..reloc
call fcn.00402010
push edi
push str..rsrc
call fcn.00402010
mov edi, dword [eax + 0x14]
mov esi, dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator___char__]
add esp, 0x10
add edi, ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push str.NamedEntries
mov ecx, ebx
call esi
mov ecx, dword [eax]
test ch, 4
je 0x403d9b
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x12]
jmp 0x403dae
test ch, 0x98
je 0x403dac
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x403dae
xor eax, eax
push str.IdEntries
mov ecx, ebx
mov word [edi + 0xc], ax
call esi
mov ecx, dword [eax]
test ch, 4
je 0x403dcc
mov eax, dword [eax + 4]
xor esi, esi
mov eax, dword [eax + 0x12]
jmp 0x403de3
test ch, 0x98
je 0x403ddf
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
xor esi, esi
jmp 0x403de3
xor esi, esi
xor eax, eax
xor edx, edx
mov word [edi + 0xe], ax
mov dx, word [edi + 0xc]
and eax, 0xffff
lea ecx, [edi + 0x10]
add edx, eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x38], esi
lea eax, [ecx + edx*8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], esi
call sub.pluk.dll_class_PVConnect____cdecl_GetConnector_void_
cmp eax, esi
je 0x403e2c
cmp dword [eax + 8], 1
jg 0x403e1f
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
jmp 0x403e2f
mov ecx, eax
call dword [sym.imp.pluk.dll_public:_class_Processor____thiscall_PVConnect::_GetOwner_void_]
mov dword [ebp + 8], eax
jmp 0x403e2f
mov dword [ebp + 8], esi
mov ecx, dword [ebp + 8]
push ebx
push esi
push esi
lea edx, [ebp - 0x3c]
push str.GetNumberEntries
push edx
call dword [sym.imp.pluk.dll_public:_int___thiscall_Processor::RunMethod_class_VarRegister___char___class_VarRegister___int__class_Variable__]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
cmp eax, esi
jle 0x403e51
mov ecx, dword [ebp - 0x28]
call dword [sym.imp.pluk.dll_public:_long_int___thiscall_Variable::GetLongNumb_void_const]
mov ecx, dword [ebp + 8]
push ebx
mov esi, eax
push 0
push 0
lea eax, [ebp - 0x3c]
push str.GetNumberDirs
push eax
call dword [sym.imp.pluk.dll_public:_int___thiscall_Processor::RunMethod_class_VarRegister___char___class_VarRegister___int__class_Variable__]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
test eax, eax
jle 0x403e7d
mov ecx, dword [ebp - 0x28]
call dword [sym.imp.pluk.dll_public:_long_int___thiscall_Variable::GetLongNumb_void_const]
mov ecx, dword [ebp - 8]
add eax, esi
shl esi, 4
lea eax, [eax + eax*2]
push 0
shl eax, 3
add ecx, eax
add esi, eax
add esi, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator___char__]
push str.NamedEntries
mov ecx, ebx
call esi
push eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push eax
lea edx, [ebp + 0x10]
push ecx
push edx
push edi
call fcn.004030a0
add esp, 0x1c
mov ecx, ebx
push 0
push str.IdEntries
call esi
push eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
push ecx
lea eax, [ebp + 0x10]
push edx
push eax
push edi
call fcn.004030a0
mov eax, dword [ebp - 0xc]
add esp, 0x1c
test al, 3
mov dword [ebp - 4], eax
je 0x403f04
shr eax, 2
lea ecx, [eax*4 + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov eax, dword [edx + 0xc]
push eax
push str.NamedEntries
call esi
lea ecx, [ebp - 4]
push eax
push ecx
push edi
call fcn.00403390
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
mov eax, dword [edx + 0xc]
push eax
push str.IdEntries
call esi
lea ecx, [ebp - 4]
push eax
push ecx
push edi
call fcn.00403390
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
sub esi, edi
add esp, 0x10
mov eax, esi
cdq
idiv ecx
test edx, edx
je 0x403f57
lea esi, [eax + 1]
imul esi, ecx
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0xa4]
div ecx
inc eax
imul eax, ecx
add esi, eax
mov eax, dword [ebp - 0x38]
cmp eax, 0x20
jle 0x403f7e
lea ecx, [ebp - 0x38]
call dword [sym.imp.pluk.dll_private:_void___thiscall_Variable::_Clear_void_]
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x33
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
jmp 0x403f81
mov edx, dword [ebp + 8]
push edx
push 0x37
call sub.pluk.dll_void___cdecl_PlukError_long_int__char__
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x37
call sub.pluk.dll_void___cdecl_PlukError_long_int__char__
mov eax, dword [ebp - 0x24]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x41
call sub.pluk.dll_void___cdecl_PlukError_long_int__char__
add esp, 8
mov eax, esi
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret