Function at 0x40e070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x43f9db
call fcn.0041d644
sub esp, 0x94
push ebx
push esi
push edi
push 3
pop edi
mov esi, ecx
xor ebx, ebx
cmp dword [0x45b9bc], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
je 0x40e0a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c7d7
mov eax, dword [0x45b9bc]
cmp eax, edi
je 0x40e0b4
cmp eax, 8
jne 0x40e0c1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040cd07
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0040ab8a
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
mov dword [ebp - 4], ebx
push eax
call fcn.0040b200
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.0040bde2
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 2
mov esi, 0x45b8a8
cmp dword [eax - 8], ebx
je 0x40e1a9
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x40e159
push esi
lea ecx, [ebp - 0x1c]
call fcn.00436118
mov dword [ebp - 0x10], 1
push str.AUTOEXEC.BAT
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.004362f3
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00408b0d
jmp 0x40e15b
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 7
lea ecx, [eax + 0xdc]
call fcn.0040a108
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 6
je 0x40e190
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.004360aa
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 2
je 0x40e1a9
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x1c]
call fcn.004360aa
mov eax, dword [ebp - 0x30]
cmp dword [eax - 8], ebx
je 0x40e258
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov byte [ebp - 4], 8
je 0x40e208
push esi
lea ecx, [ebp - 0x1c]
call fcn.00436118
or dword [ebp - 0x10], 4
push str.CONFIG.SYS
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
push eax
call fcn.004362f3
or dword [ebp - 0x10], 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00408b0d
jmp 0x40e20a
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xc
lea ecx, [eax + 0xdc]
call fcn.0040a108
test byte [ebp - 0x10], 8
mov dword [ebp - 4], 0xb
je 0x40e23f
and dword [ebp - 0x10], 0xfffffff7
lea ecx, [ebp - 0x20]
call fcn.004360aa
test byte [ebp - 0x10], 4
mov dword [ebp - 4], 2
je 0x40e258
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x1c]
call fcn.004360aa
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0040ff56
cmp dword [0x45b9bc], 5
push 0x14
pop ebx
push 0x10
pop edi
je 0x40e312
push ebx
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0xd
je 0x40e2c6
push esi
lea ecx, [ebp - 0x1c]
call fcn.00436118
or dword [ebp - 0x10], edi
push str.GHOST
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0xe
push eax
call fcn.004362f3
or dword [ebp - 0x10], 0x20
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xf
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004033b8
jmp 0x40e2c8
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x11
lea ecx, [eax + 0xdc]
call fcn.0040a108
test byte [ebp - 0x10], 0x20
mov dword [ebp - 4], edi
je 0x40e2f9
and dword [ebp - 0x10], 0xffffffdf
lea ecx, [ebp - 0x20]
call fcn.004360aa
test byte [ebp - 0x10], 0x10
mov dword [ebp - 4], 2
je 0x40e312
and dword [ebp - 0x10], 0xffffffef
lea ecx, [ebp - 0x1c]
call fcn.004360aa
mov eax, dword [0x45b9bc]
cmp eax, 4
je 0x40e3c3
cmp eax, 7
je 0x40e3c3
push ebx
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x12
je 0x40e373
push esi
lea ecx, [ebp - 0x1c]
call fcn.00436118
or dword [ebp - 0x10], 0x40
push 0x456d78
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x13
push eax
call fcn.004362f3
or byte [ebp - 0x10], 0x80
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004033b8
jmp 0x40e375
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x16
lea ecx, [eax + 0xdc]
call fcn.0040a108
test byte [ebp - 0x10], 0x80
mov dword [ebp - 4], 0x15
je 0x40e3aa
and byte [ebp - 0x10], 0x7f
lea ecx, [ebp - 0x20]
call fcn.004360aa
test byte [ebp - 0x10], 0x40
mov dword [ebp - 4], 2
je 0x40e3c3
and dword [ebp - 0x10], 0xffffffbf
lea ecx, [ebp - 0x1c]
call fcn.004360aa
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0xf94]
test eax, eax
je 0x40e3e0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ceb2
jmp 0x40e621
cmp dword [0x45b9bc], 7
je 0x40e3f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ee01
jmp 0x40e621
mov eax, dword [ecx + 0x17f4]
test al, 2
mov dword [ebp - 0x1c], eax
je 0x40e4af
push 0x14
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x17
mov ebx, 0x100
mov edi, 0x200
je 0x40e461
push esi
lea ecx, [ebp - 0x24]
call fcn.00436118
or dword [ebp - 0x10], ebx
push 0x456d74
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x18
push eax
call fcn.004362f3
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0x19
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004033b8
jmp 0x40e463
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x1b
lea ecx, [eax + 0xdc]
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x1a
je 0x40e497
and byte [ebp - 0xf], 0xfd
lea ecx, [ebp - 0x20]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40e4af
and byte [ebp - 0xf], 0xfe
lea ecx, [ebp - 0x24]
call fcn.004360aa
test byte [ebp - 0x1c], 0x19
je 0x40e55e
push 0x14
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x1c
mov ebx, 0x400
mov edi, 0x800
je 0x40e510
push esi
lea ecx, [ebp - 0x24]
call fcn.00436118
or dword [ebp - 0x10], ebx
push 0x456d70
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x1d
push eax
call fcn.004362f3
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0x1e
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004033b8
jmp 0x40e512
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x20
lea ecx, [eax + 0xdc]
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x1f
je 0x40e546
and byte [ebp - 0xf], 0xf7
lea ecx, [ebp - 0x20]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40e55e
and byte [ebp - 0xf], 0xfb
lea ecx, [ebp - 0x24]
call fcn.004360aa
test byte [ebp - 0x1c], 0x20
je 0x40e60d
push 0x14
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x21
mov ebx, 0x1000
mov edi, 0x2000
je 0x40e5bf
push esi
lea ecx, [ebp - 0x24]
call fcn.00436118
or dword [ebp - 0x10], ebx
push 0x456d6c
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x22
push eax
call fcn.004362f3
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0x23
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004033b8
jmp 0x40e5c1
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x25
lea ecx, [eax + 0xdc]
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x24
je 0x40e5f5
and byte [ebp - 0xf], 0xdf
lea ecx, [ebp - 0x20]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40e60d
and byte [ebp - 0xf], 0xef
lea ecx, [ebp - 0x24]
call fcn.004360aa
cmp dword [ebp - 0x1c], 0
je 0x40e621
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0040f060
mov eax, dword [ebp - 0x34]
cmp dword [eax - 8], 0
je 0x40e6d7
push 0x18
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x26
mov ebx, 0x4000
mov edi, 0x8000
je 0x40e689
push esi
lea ecx, [ebp - 0x24]
call fcn.00436118
or dword [ebp - 0x10], ebx
push str.GHOSTWATTCP.CFG
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x27
push eax
call fcn.004362f3
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0x28
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00408b0d
jmp 0x40e68b
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x2a
lea ecx, [eax + 0xdc]
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x29
je 0x40e6bf
and byte [ebp - 0xf], 0x7f
lea ecx, [ebp - 0x20]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40e6d7
and byte [ebp - 0xf], 0xbf
lea ecx, [ebp - 0x24]
call fcn.004360aa
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0040fcd4
mov ecx, dword [ebp - 0x28]
call fcn.0040f97e
dec eax
je 0x40ecdb
dec eax
je 0x40e83a
dec eax
je 0x40edc9
cmp byte [ebp + 0x10], 0
je 0x40e716
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0040c48d
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 0x57
je 0x40e7af
push esi
lea ecx, [ebp - 0x24]
call fcn.00436118
and dword [ebp - 0x5c], 0
push str.GHOST_
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x58
mov dword [ebp - 0x18], 0x18
push eax
call fcn.004362f3
push str.GHOST.EXE
push eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0x59
push eax
mov dword [ebp - 0x18], 0x38
call fcn.004362f3
mov esi, eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 4], 0x5a
call fcn.004106bf
mov dword [ebp - 0x18], 0x78
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0x5b
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
push eax
call fcn.00410dde
mov esi, eax
jmp 0x40e7b1
xor esi, esi
test byte [ebp - 0x18], 0x40
mov dword [ebp - 4], 0x5e
je 0x40e7ca
and dword [ebp - 0x18], 0xffffffbf
lea ecx, [ebp - 0x6c]
call fcn.004360aa
test byte [ebp - 0x18], 0x20
mov dword [ebp - 4], 0x5d
je 0x40e7e6
and dword [ebp - 0x18], 0xffffffdf
lea ecx, [ebp - 0x8c]
call fcn.004360aa
test byte [ebp - 0x18], 0x10
mov dword [ebp - 4], 0x5c
je 0x40e7ff
and dword [ebp - 0x18], 0xffffffef
lea ecx, [ebp - 0x54]
call fcn.004360aa
test byte [ebp - 0x18], 8
mov dword [ebp - 4], 2
je 0x40e814
lea ecx, [ebp - 0x24]
call fcn.004360aa
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], esi
mov dword [ecx + 0x1804], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0xdc]
call fcn.0040a108
jmp 0x40edc9
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov byte [ebp - 4], 0x32
mov ebx, 0x80000
mov edi, 0x200000
je 0x40e8b9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00436118
or dword [ebp - 0x10], ebx
and dword [ebp - 0x7c], 0
or byte [ebp - 0xe], 0x10
push str.GHOSTNGCTDOS.EXE
lea eax, [ebp - 0x64]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x33
push eax
call fcn.004362f3
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 4], 0x34
call fcn.004106dd
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x35
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.00410dde
jmp 0x40e8bb
xor eax, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x38
lea ecx, [eax + 0xdc]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 8], ecx
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x37
je 0x40e8f5
and byte [ebp - 0xe], 0xdf
lea ecx, [ebp - 0x9c]
call fcn.004360aa
test byte [ebp - 0xe], 0x10
mov dword [ebp - 4], 0x36
je 0x40e90e
and byte [ebp - 0xe], 0xef
lea ecx, [ebp - 0x64]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40e926
and byte [ebp - 0xe], 0xf7
lea ecx, [ebp - 0x1c]
call fcn.004360aa
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov byte [ebp - 4], 0x39
mov ebx, 0x400000
mov edi, 0x1000000
je 0x40e9ab
push esi
lea ecx, [ebp - 0x40]
call fcn.00436118
or dword [ebp - 0x10], ebx
and dword [ebp - 0x84], 0
or byte [ebp - 0xe], 0x80
push str.GHOSTGHSTWALK.EXE
lea eax, [ebp - 0x94]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x3a
push eax
call fcn.004362f3
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0x3b
call fcn.00410719
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0x3c
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.00410dde
jmp 0x40e9ad
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0x3f
push eax
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x3e
je 0x40e9db
and byte [ebp - 0xd], 0xfe
lea ecx, [ebp - 0x48]
call fcn.004360aa
test byte [ebp - 0xe], 0x80
mov dword [ebp - 4], 0x3d
je 0x40e9f7
and byte [ebp - 0xe], 0x7f
lea ecx, [ebp - 0x94]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40ea0f
and byte [ebp - 0xe], 0xbf
lea ecx, [ebp - 0x40]
call fcn.004360aa
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov byte [ebp - 4], 0x40
mov ebx, 0x2000000
mov edi, 0x8000000
je 0x40ea8b
push esi
lea ecx, [ebp - 0x44]
call fcn.00436118
or dword [ebp - 0x10], ebx
and dword [ebp - 0x74], 0
or byte [ebp - 0xd], 4
push str.GHOSTPUBKEY.CRT
lea eax, [ebp - 0x50]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x41
push eax
call fcn.004362f3
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], 0x42
call fcn.00410737
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0x43
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.00410dde
jmp 0x40ea8d
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0x46
push eax
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x45
je 0x40eabb
and byte [ebp - 0xd], 0xf7
lea ecx, [ebp - 0x4c]
call fcn.004360aa
test byte [ebp - 0xd], 4
mov dword [ebp - 4], 0x44
je 0x40ead4
and byte [ebp - 0xd], 0xfb
lea ecx, [ebp - 0x50]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40eaec
and byte [ebp - 0xd], 0xfd
lea ecx, [ebp - 0x44]
call fcn.004360aa
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
mov byte [ebp - 4], 0x47
mov ebx, 0x10000000
mov edi, 0x40000000
je 0x40eb68
push esi
lea ecx, [ebp - 0x3c]
call fcn.00436118
or dword [ebp - 0x10], ebx
and dword [ebp - 0x58], 0
or byte [ebp - 0xd], 0x20
push str.GHOSTGDISK.EXE
lea eax, [ebp - 0x68]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x48
push eax
call fcn.004362f3
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 0x49
call fcn.00410755
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0x4a
push ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.00410dde
jmp 0x40eb6a
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0x4d
push eax
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x4c
je 0x40eb98
and byte [ebp - 0xd], 0xbf
lea ecx, [ebp - 0x60]
call fcn.004360aa
test byte [ebp - 0xd], 0x20
mov dword [ebp - 4], 0x4b
je 0x40ebb1
and byte [ebp - 0xd], 0xdf
lea ecx, [ebp - 0x68]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40ebc9
and byte [ebp - 0xd], 0xef
lea ecx, [ebp - 0x3c]
call fcn.004360aa
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 0x4e
mov edi, 0x80000000
je 0x40ec5d
push esi
lea ecx, [ebp - 0x20]
call fcn.00436118
or dword [ebp - 0x10], edi
and dword [ebp - 0x70], 0
push str.GHOST_
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x4f
push eax
call fcn.004362f3
push str.GHOST.EXE
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 0x50
push eax
mov dword [ebp - 0x18], 3
call fcn.004362f3
mov esi, eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], 0x51
call fcn.004106bf
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0x52
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
push eax
call fcn.00410dde
jmp 0x40ec5f
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0x56
push eax
call fcn.0040a108
test byte [ebp - 0x18], 4
mov dword [ebp - 4], 0x55
je 0x40ec8e
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp - 0x78]
call fcn.004360aa
test byte [ebp - 0x18], 2
mov dword [ebp - 4], 0x54
je 0x40eca7
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0x80]
call fcn.004360aa
test byte [ebp - 0x18], 1
mov dword [ebp - 4], 0x53
je 0x40ecc3
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp - 0x88]
call fcn.004360aa
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
je 0x40edc9
lea ecx, [ebp - 0x20]
jmp 0x40edc4
push 0x24
call fcn.00432bb3
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 0x2b
mov ebx, 0x10000
mov edi, 0x40000
je 0x40ed60
push esi
lea ecx, [ebp - 0x14]
call fcn.00436118
or dword [ebp - 0x10], ebx
and dword [ebp - 0x90], 0
or byte [ebp - 0xe], 2
push str.GHOSTDOSGHSRV.EXE
lea eax, [ebp - 0xa0]
push dword [ebp + 0xc]
mov byte [ebp - 4], 0x2c
push eax
call fcn.004362f3
mov esi, eax
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 4], 0x2d
call fcn.004106fb
or dword [ebp - 0x10], edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0x2e
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
push eax
call fcn.00410dde
jmp 0x40ed62
xor eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x31
lea ecx, [eax + 0xdc]
call fcn.0040a108
test dword [ebp - 0x10], edi
mov dword [ebp - 4], 0x30
je 0x40ed99
and byte [ebp - 0xe], 0xfb
lea ecx, [ebp - 0x98]
call fcn.004360aa
test byte [ebp - 0xe], 2
mov dword [ebp - 4], 0x2f
je 0x40edb5
and byte [ebp - 0xe], 0xfd
lea ecx, [ebp - 0xa0]
call fcn.004360aa
test dword [ebp - 0x10], ebx
mov dword [ebp - 4], 2
je 0x40edc9
lea ecx, [ebp - 0x14]
call fcn.004360aa
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004360aa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004360aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004360aa
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc