Function at 0x40ce00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push esi
push edi
mov esi, dword [eax + 0x368c]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x10], esi
call fcn.004b7ce6
and eax, 0xffff
mov dword [esp + 0x2c], eax
call fcn.004b7ce6
mov edi, eax
push 0x200
and edi, 0xffff
mov dword [esp + 0x20], edi
call fcn.00487e70
push 0x200
mov ebp, eax
call fcn.00487e70
push 0x200
mov ebx, eax
call fcn.00487e70
add esp, 0xc
mov dword [esp + 0x24], eax
test ebp, ebp
je 0x40d2f1
test ebx, ebx
je 0x40d2f1
test eax, eax
je 0x40d2f1
mov edx, dword [esi + 0x78]
mov dword [esp + 0x20], edx
mov eax, dword [edx + 4]
test eax, eax
je 0x40cea8
mov ecx, 0x80
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x40cec2
mov ecx, 0x80
mov esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x38], 1
jne 0x40cf5a
mov eax, 0x80808081
mov byte [ebx + 0x1be], 0x80
mul dword [esp + 0x40]
mov ecx, edx
mov eax, 0x4104105
shr ecx, 7
mul ecx
sub ecx, edx
mov eax, dword [esp + 0x40]
shr ecx, 1
add ecx, edx
mov byte [ebx + 0x1bf], 1
shr ecx, 5
dec ecx
mov byte [ebx + 0x1c0], 1
mov edx, ecx
mov byte [ebx + 0x1c5], cl
shr edx, 2
or dl, 0x3f
mov ecx, 0x3f
mov byte [ebx + 0x1c4], dl
mov edx, dword [esp + 0x34]
add eax, 0xffffffc1
mov byte [ebx + 0x1c1], 0
mov byte [ebx + 0x1c2], 0xc
mov byte [ebx + 0x1c3], 0xfe
mov dword [ebx + 0x1c6], ecx
mov dword [ebx + 0x1ca], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [edx + 0x36b0], ecx
mov dword [esp + 0x40], eax
jmp 0x40cf5e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x30], 0x20
mov dword [esi + 0x34], ecx
mov cl, byte [ebp + 3]
test cl, cl
mov byte [ebp], 0xeb
mov byte [ebp + 1], 0x58
mov byte [ebp + 2], 0x90
jne 0x40cf91
mov edx, dword [str.MSWIN4.1]
mov dword [ebp + 3], edx
mov ecx, dword [0x50fd44]
mov dword [ebp + 7], ecx
mov ecx, dword [esp + 0x44]
mov word [ebp + 0xb], 0x200
mov byte [ebp + 0xd], cl
mov dx, word [esi + 0x30]
mov word [ebp + 0xe], dx
xor edx, edx
mov byte [ebp + 0x10], 2
mov word [ebp + 0x11], dx
mov word [ebp + 0x13], dx
mov dword [ebp + 0x20], eax
mov dl, byte [0x50e7ec]
mov byte [ebp + 0x15], dl
mov edx, dword [esp + 0x3c]
push edx
push ecx
push eax
call fcn.0040c8a0
mov dword [esp + 0x50], eax
mov dword [ebp + 0x24], eax
lea eax, [ebp + 0x47]
mov ecx, 0x20202020
mov edx, eax
mov word [ebp + 0x16], 0
mov dword [ebp + 0x2c], 2
mov word [ebp + 0x30], 1
mov word [ebp + 0x32], 6
mov word [ebp + 0x18], 0x3f
mov word [ebp + 0x1a], 0xff
mov byte [ebp + 0x42], 0x29
mov dword [edx], ecx
add esp, 0xc
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x40d049
mov eax, dword [0x548c7c]
push 0x40000
push 0
push eax
push 0xffffffffffffffff
push ecx
call fcn.00420f00
mov ecx, dword [0x548c7c]
push 0xb
lea eax, [ebp + 0x47]
push ecx
push eax
call fcn.0041c030
add esp, 0x20
jmp 0x40d06e
mov edx, dword [str.NEW_DISK]
mov dword [eax], edx
mov ecx, dword [0x50fd38]
mov dword [eax + 4], ecx
mov dx, word [0x50fd3c]
mov word [eax + 8], dx
mov cl, byte [0x50fd3e]
mov byte [eax + 0xa], cl
mov ecx, dword [esp + 0x2c]
mov dl, byte [0x50e7ed]
mov eax, dword [esp + 0x34]
mov byte [ebp + 0x40], dl
shl edi, 0x10
or edi, ecx
mov dword [ebp + 0x43], edi
mov ecx, dword [eax + 0x36b0]
lea eax, [esi + 0x7c]
mov dword [ebp + 0x1c], ecx
mov ecx, 6
mov esi, 0x50fc60
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dl, byte [0x50e7ec]
or ecx, 0xffffffff
mov byte [eax], dl
mov edx, dword [esp + 0x10]
xor eax, eax
mov esi, dword [edx + 0x90]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp + 0x52]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov word [ebp + 0x1fe], 0xaa55
mov cl, byte [ebp + 0x10]
mov eax, dword [edx + 0x30]
imul ecx, dword [ebp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [edx + 4], ecx
sub eax, ecx
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp + 0xd]
mov esi, 1
div ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x40d164
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push esi
push eax
push 0
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, esi
jne 0x40d2f1
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x14]
cmp esi, 1
jle 0x40d16c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
push 1
push ecx
push edx
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
mov eax, dword [esp + 0x40]
inc eax
cmp eax, esi
mov dword [esp + 0x40], eax
jl 0x40d137
jmp 0x40d16c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
push 1
push ebp
push esi
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
push eax
lea eax, [esi + 6]
push ebp
push eax
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x40d1e6
mov ecx, dword [ecx + 0x14]
push 1
add ecx, esi
push eax
push ecx
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 2
jne 0x40d1e6
mov edx, dword [eax + 0x10]
push 1
lea eax, [esi + 8]
push edx
push eax
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
mov ecx, 0x80
xor eax, eax
mov edi, ebp
push 1
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x38]
lea ecx, [esi + 2]
push ebp
push ecx
push edi
mov dword [ebp + 0x1fc], 0xaa550000
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
push eax
lea edx, [esi + 8]
push ebp
push edx
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
push eax
lea eax, [esi + 1]
push ebp
push eax
push edi
mov dword [ebp], 0x41615252
mov dword [ebp + 0x1e4], 0x61417272
mov dword [ebp + 0x1e8], 0xffffffff
mov dword [ebp + 0x1ec], 2
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
push eax
lea ecx, [esi + 7]
push ebp
push ecx
push edi
call fcn.0040b630
add esp, 0x10
cmp eax, 1
jne 0x40d2f1
mov edi, dword [esp + 0x44]
mov edx, edi
shl edx, 9
push edx
call fcn.00487e70
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x40d2f1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], 0
add esi, 0x20
mov edx, dword [ecx + 0x7c]
mov dword [eax], edx
mov ecx, dword [ecx + 0x80]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xfffffff
jmp 0x40d2c5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push edi
push eax
push esi
push edx
call fcn.0040b630
add esp, 0x10
cmp eax, edi
jne 0x40d2f1
mov eax, dword [esp + 0x40]
add esi, edi
inc eax
cmp eax, 2
mov dword [esp + 0x40], eax
jl 0x40d2c1
mov dword [esp + 0x28], 0
push ebp
call fcn.00487ea0
push ebx
call fcn.00487ea0
mov eax, dword [esp + 0x2c]
push eax
call fcn.00487ea0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00487ea0
mov eax, dword [esp + 0x38]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret