Function at 0x4038e0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x44]
cmp word [ebp], 0x5a4d
jne 0x403c85
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
mov dword [esp + 0x20], ebx
cmp dword [ebx], 0x4550
jne 0x403c85
push esi
push ebx
push str..reloc
call fcn.00402010
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
mov eax, dword [esi + 0x10]
add eax, 0x200
jne 0x40392d
push 4
jmp 0x40392e
push eax
call sub.pluk.dll_HMALLOC
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
add esp, 4
mov dword [esp + 0x18], eax
add esi, ebp
push edi
mov edi, eax
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str..rsrc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402010
mov ebx, eax
push 0
mov esi, dword [ebx + 0x14]
mov dword [esi + ebp], 0x40000040
add esi, ebp
call dword [sym.imp.MSVCRT.dll_time]
mov ebp, dword [esp + 0x60]
mov edi, dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator___char__]
add esp, 0xc
mov ecx, ebp
mov dword [esi + 4], eax
mov word [esi + 8], 4
push str.NamedEntries
mov word [esi + 0xa], 0
call edi
mov ecx, dword [eax]
test ch, 4
je 0x4039a8
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x12]
jmp 0x4039bb
test ch, 0x98
je 0x4039b9
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x4039bb
xor eax, eax
push str.IdEntries
mov ecx, ebp
mov word [esi + 0xc], ax
call edi
mov ecx, dword [eax]
test ch, 4
je 0x4039d9
mov eax, dword [eax + 4]
xor edi, edi
mov eax, dword [eax + 0x12]
jmp 0x4039f0
test ch, 0x98
je 0x4039ec
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
xor edi, edi
jmp 0x4039f0
xor edi, edi
xor eax, eax
xor edx, edx
mov word [esi + 0xe], ax
mov dx, word [esi + 0xc]
and eax, 0xffff
lea ecx, [esi + 0x10]
add edx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edi
lea eax, [ecx + edx*8]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], edi
call sub.pluk.dll_class_PVConnect____cdecl_GetConnector_void_
cmp eax, edi
je 0x403a40
cmp dword [eax + 8], 1
jg 0x403a32
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
jmp 0x403a44
mov ecx, eax
call dword [sym.imp.pluk.dll_public:_class_Processor____thiscall_PVConnect::_GetOwner_void_]
mov dword [esp + 0x54], eax
jmp 0x403a44
mov dword [esp + 0x54], edi
mov ecx, dword [esp + 0x54]
push ebp
push edi
push edi
lea edx, [esp + 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 [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, edi
jle 0x403a6b
mov ecx, dword [esp + 0x44]
call dword [sym.imp.pluk.dll_public:_long_int___thiscall_Variable::GetLongNumb_void_const]
mov ecx, dword [esp + 0x54]
push ebp
mov edi, eax
push 0
push 0
lea eax, [esp + 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 [esp + 0x30]
lea ecx, [esp + 0x34]
test eax, eax
jle 0x403a9c
mov ecx, dword [esp + 0x44]
call dword [sym.imp.pluk.dll_public:_long_int___thiscall_Variable::GetLongNumb_void_const]
mov ecx, dword [esp + 0x14]
add eax, edi
shl edi, 4
lea eax, [eax + eax*2]
push 0
shl eax, 3
add ecx, eax
add edi, eax
add edi, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
mov edi, dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator___char__]
push str.NamedEntries
mov ecx, ebp
call edi
push eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push esi
call fcn.00402a50
add esp, 0x1c
mov ecx, ebp
push 0
push str.IdEntries
call edi
push eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push esi
call fcn.00402a50
mov eax, dword [esp + 0x34]
add esp, 0x1c
test al, 3
mov dword [esp + 0x10], eax
je 0x403b31
shr eax, 2
lea ecx, [eax*4 + 4]
mov dword [esp + 0x10], ecx
mov edx, dword [ebx + 0xc]
mov ecx, ebp
push edx
push str.NamedEntries
call edi
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004035d0
mov ecx, dword [ebx + 0xc]
add esp, 0x10
push ecx
push str.IdEntries
mov ecx, ebp
call edi
lea edx, [esp + 0x14]
push eax
push edx
push esi
call fcn.004035d0
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
sub edi, esi
xor edx, edx
mov dword [ebx + 0x10], edi
mov ebp, dword [ecx + 0x3c]
mov eax, edi
add esp, 0x10
div ebp
test edx, edx
je 0x403b8c
inc eax
imul eax, ebp
mov dword [ebx + 8], eax
jmp 0x403b8f
mov dword [ebx + 8], edi
mov eax, dword [esp + 0x10]
sub eax, esi
mov edx, eax
and edx, 0x800001ff
jns 0x403ba7
dec edx
or edx, 0xfffffe00
inc edx
je 0x403bb9
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
inc eax
shl eax, 9
mov edi, dword [ebx + 0x10]
mov esi, dword [ecx + 0x20]
mov edx, eax
mov ebp, dword [esp + 0x2c]
sub edx, edi
add esi, edx
mov dword [ecx + 0x20], esi
mov edx, dword [ebx + 0x10]
mov dword [ecx + 0x8c], edx
mov edx, dword [ebx + 0x14]
add edx, eax
mov dword [ebx + 0x10], eax
mov dword [ebp + 0x14], edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
add eax, edx
xor edx, edx
mov dword [ebp + 0xc], eax
mov esi, dword [ecx + 0x38]
div esi
test edx, edx
je 0x403bfd
inc eax
imul eax, esi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ecx + 0x38]
add eax, edx
xor edx, edx
mov dword [ecx + 0x50], eax
div esi
test edx, edx
je 0x403c1a
inc eax
imul eax, esi
mov dword [ecx + 0x50], eax
mov eax, dword [ecx + 0xa4]
xor edx, edx
div esi
mov edx, dword [ecx + 0x50]
inc eax
imul eax, esi
sub edx, eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0xa0], edx
mov edi, dword [ebp + 0x14]
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x10]
add edi, edx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
pop edi
je 0x403c61
push eax
call sub.pluk.dll_HFREE
add esp, 4
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x30]
add esi, ecx
cmp eax, 0x20
jle 0x403c7c
lea ecx, [esp + 0x30]
call dword [sym.imp.pluk.dll_private:_void___thiscall_Variable::_Clear_void_]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push 0x33
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
xor eax, eax
pop ebp
pop ebx
add esp, 0x38
ret