Function at 0x478c00
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b42e2
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0xec8960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x838], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
mov esi, dword [ebp + 0xc]
add eax, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x84c], ebx
mov dword [ebx], eax
mov dword [ebp - 0x844], esi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x1c], 1
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [ebx + 0x28], 1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x38], 1
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov byte [ebx + 0x50], 1
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov byte [ebx + 0x5c], 1
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov byte [ebx + 0x68], 1
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov byte [ebx + 0x78], 1
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov byte [ebx + 0x84], 1
push ecx
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 9
push eax
push dword [esi + 4]
call fcn.0047ab10
add esp, 0xc
cmp dword [esi], 3
je 0x478d3c
cmp dword [0xecedb0], 0
je 0x479572
jmp 0x479566
push dword [esi + 0x20]
mov ecx, edi
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebx]
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
call fcn.00478130
mov ecx, edi
call fcn.00478370
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x6c], eax
push ecx
push eax
mov ecx, edi
call fcn.0047bc50
xorps xmm0, xmm0
mov dword [ebp - 0x82c], 0
movq qword [ebp - 0x834], xmm0
mov dword [ebp - 0x830], 0
mov byte [ebp - 0x82c], 1
mov byte [ebp - 4], 0xa
mov esi, dword [ebx + 0x6c]
push 0
mov dword [ebp - 0x838], esi
call fcn.00488953
add esp, 4
mov dword [ebp - 0x834], esi
mov edx, 4
test esi, esi
je 0x478dd5
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
add esp, 4
jmp 0x478dd7
xor eax, eax
mov dword [ebp - 0x830], eax
mov byte [ebp - 0x82c], 1
test esi, esi
jle 0x478e06
mov ebx, dword [ebp - 0x838]
mov esi, eax
push esi
mov ecx, edi
call fcn.00478540
add esi, 4
sub ebx, 1
jne 0x478df0
mov ebx, dword [ebp - 0x848]
xorps xmm0, xmm0
mov dword [ebp - 0x820], 0
movq qword [ebp - 0x828], xmm0
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x820], 1
mov byte [ebp - 4], 0xb
mov esi, dword [ebx + 0x6c]
push 0
mov dword [ebp - 0x840], esi
call fcn.00488953
add esp, 4
mov dword [ebp - 0x828], esi
mov edx, 8
test esi, esi
je 0x478e70
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
add esp, 4
mov dword [ebp - 0x824], eax
jmp 0x478e7a
mov dword [ebp - 0x824], 0
xor esi, esi
mov byte [ebp - 0x820], 1
cmp dword [ebp - 0x840], esi
jle 0x478eb0
mov ebx, dword [ebp - 0x840]
mov ecx, edi
call fcn.00478370
mov ecx, dword [ebp - 0x824]
mov dword [ecx + esi*8], eax
mov dword [ecx + esi*8 + 4], edx
inc esi
cmp esi, ebx
jl 0x478e91
mov ebx, dword [ebp - 0x848]
xorps xmm0, xmm0
mov dword [ebp - 0x814], 0
movq qword [ebp - 0x81c], xmm0
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x814], 1
mov byte [ebp - 4], 0xc
mov esi, dword [ebx + 0x6c]
push 0
mov dword [ebp - 0x840], esi
call fcn.00488953
add esp, 4
mov dword [ebp - 0x81c], esi
test esi, esi
je 0x478f1a
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
add esp, 4
mov dword [ebp - 0x818], eax
jmp 0x478f24
mov dword [ebp - 0x818], 0
xor esi, esi
mov byte [ebp - 0x814], 1
cmp dword [ebp - 0x840], esi
jle 0x478f5f
mov ebx, dword [ebp - 0x840]
nop dword [eax + eax]
mov ecx, edi
call fcn.00478370
mov ecx, dword [ebp - 0x818]
mov dword [ecx + esi*8], eax
mov dword [ecx + esi*8 + 4], edx
inc esi
cmp esi, ebx
jl 0x478f40
mov ebx, dword [ebp - 0x848]
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x7c], eax
test eax, eax
je 0x478f84
xor ecx, ecx
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
add esp, 4
jmp 0x478f86
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x80], eax
mov byte [ebx + 0x84], 1
mov dword [ebp - 0x840], ecx
cmp dword [ebx + 0x7c], ecx
jle 0x47905f
mov eax, dword [ebp - 0x824]
xor esi, esi
mov edi, dword [ebp - 0x818]
sub eax, edi
mov dword [ebp - 0x838], eax
nop word [eax + eax]
mov eax, dword [ebx + 0x80]
lea esi, [esi + 0x28]
mov dword [esi + eax - 0x28], 2
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x80]
mov dword [eax + esi - 0x24], ecx
mov ecx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x838]
mov edx, dword [ecx + 8]
sub edx, dword [eax + edi]
mov ecx, dword [ecx + 0xc]
sbb ecx, dword [eax + edi + 4]
lea edi, [edi + 8]
mov eax, dword [ebx + 0x80]
mov dword [eax + esi - 0x20], edx
mov dword [eax + esi - 0x1c], ecx
mov eax, dword [ebx + 0x80]
mov dword [eax + esi - 0x18], 0
mov dword [eax + esi - 0x14], 0
mov eax, dword [ebx + 0x80]
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
mov dword [eax + esi - 0x10], ecx
mov ecx, dword [ebp - 0x840]
mov dword [eax + esi - 0xc], edx
inc ecx
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x840], ecx
mov dword [eax + esi - 8], 0
cmp ecx, dword [ebx + 0x7c]
jl 0x478fc0
lea edi, [ebx + 4]
xor edx, edx
mov dword [ebx + 0x2c], 0
cmp dword [ebx + 0x6c], edx
jle 0x479088
nop dword [eax]
mov eax, dword [ebx + 0x74]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebx + 0x2c]
mov dword [ebx + 0x2c], ecx
mov eax, dword [ebx + 0x74]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebx + 0x6c]
jl 0x479070
mov ecx, edi
call fcn.00478370
lea esi, [ebx + 0x14]
mov ecx, edi
push esi
push eax
call fcn.0047bce0
xor ecx, ecx
mov dword [ebp - 0x838], ecx
cmp dword [esi], ecx
jle 0x47916a
nop dword [eax + eax]
mov eax, dword [esi + 4]
mov edi, 1
mov edx, dword [eax + ecx*4]
mov al, 1
mov ecx, edx
mov dword [ebp - 0x844], edx
mov dword [ebp - 0xc50], edx
mov esi, edx
mov byte [ebp - 0x839], al
cmp byte [edx], 0
mov dword [ebp - 0x840], ecx
je 0x47914c
mov ebx, edi
test al, al
je 0x479248
cmp byte [esi], 0x2e
jne 0x479237
mov al, byte [esi + 1]
mov byte [ebp - 0x83a], al
push 4
movsx eax, al
push eax
push 0xea00ec
call fcn.0048a410
add esp, 0xc
test eax, eax
je 0x4791dc
mov ecx, dword [ebp - 0x840]
xor eax, eax
cmp byte [ebp - 0x83a], al
setne al
inc eax
add esi, eax
mov al, byte [ebp - 0x839]
cmp byte [esi], 0
jne 0x4790e0
mov ebx, dword [ebp - 0x848]
cmp ecx, dword [ebp - 0x844]
jbe 0x47914c
cmp byte [ecx - 1], 0x5c
lea eax, [ecx - 1]
cmove ecx, eax
mov byte [ecx], 0
lea esi, [ebx + 0x14]
mov ecx, dword [ebp - 0x838]
inc ecx
mov dword [ebp - 0x838], ecx
cmp ecx, dword [esi]
jl 0x4790b0
lea edi, [ebx + 4]
cmp byte [ebx + 0x38], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x838], esi
je 0x479184
push dword [ebx + 0x34]
call fcn.00488953
add esp, 4
mov dword [ebx + 0x30], esi
test esi, esi
je 0x479298
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
xor esi, esi
mov dword [ebx + 0x34], eax
add esp, 4
mov byte [ebx + 0x38], 1
cmp dword [ebp - 0x838], esi
jle 0x4792a3
nop
mov eax, dword [ebx + 0x34]
mov ecx, edi
lea eax, [eax + esi*4]
push eax
call fcn.00478540
inc esi
cmp esi, dword [ebp - 0x838]
jl 0x4791c0
jmp 0x4792a3
cmp byte [ebp - 0x83a], 0x2e
jne 0x479231
mov al, byte [esi + 2]
mov byte [ebp - 0x83a], al
push 4
movsx eax, al
push eax
push 0xea00ec
call fcn.0048a410
add esp, 0xc
test eax, eax
je 0x479231
mov ecx, dword [ebp + edi*4 - 0xc54]
xor eax, eax
cmp byte [ebp - 0x83a], al
mov dword [ebp - 0x840], ecx
setne al
add eax, 2
add esi, eax
cmp edi, 1
jle 0x479129
dec edi
jmp 0x479129
mov ecx, dword [ebp - 0x840]
mov dword [ebp + edi*4 - 0xc50], ecx
inc edi
cmp edi, 0x100
cmove edi, ebx
movsx eax, byte [esi]
push eax
push 0xea01b4
call fcn.0048a880
add esp, 8
mov cl, 0x5c
test eax, eax
jne 0x479261
mov cl, byte [esi]
mov eax, dword [ebp - 0x840]
mov byte [eax], cl
movsx eax, cl
push eax
push 0xea00ec
call fcn.0048a880
mov ecx, dword [ebp - 0x840]
add esp, 8
test eax, eax
setne al
inc esi
inc ecx
mov byte [ebp - 0x839], al
mov dword [ebp - 0x840], ecx
jmp 0x47912f
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x38], 1
cmp byte [ebx + 0x28], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x844], esi
je 0x4792bd
push dword [ebx + 0x24]
call fcn.00488953
add esp, 4
mov dword [ebx + 0x20], esi
test esi, esi
je 0x479318
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
xor ecx, ecx
mov dword [ebx + 0x24], eax
add esp, 4
mov byte [ebx + 0x28], 1
mov dword [ebp - 0x838], ecx
test esi, esi
jle 0x479323
mov eax, dword [ebx + 0x24]
lea esi, [eax + ecx*4]
mov ecx, edi
call fcn.00478370
mov ecx, dword [ebp - 0x838]
inc ecx
mov dword [esi], eax
mov dword [ebp - 0x838], ecx
cmp ecx, dword [ebp - 0x844]
jl 0x4792f2
jmp 0x479323
mov dword [ebx + 0x24], 0
mov byte [ebx + 0x28], 1
cmp byte [ebx + 0x44], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x844], esi
je 0x47933d
push dword [ebx + 0x40]
call fcn.00488953
add esp, 4
mov dword [ebx + 0x3c], esi
test esi, esi
je 0x47939b
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
xor ecx, ecx
mov dword [ebx + 0x40], eax
add esp, 4
mov byte [ebx + 0x44], 1
mov dword [ebp - 0x838], ecx
test esi, esi
jle 0x4793a6
mov eax, dword [ebx + 0x40]
lea esi, [eax + ecx*8]
mov ecx, edi
call fcn.00478370
mov ecx, dword [ebp - 0x838]
inc ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [ebp - 0x838], ecx
cmp ecx, dword [ebp - 0x844]
jl 0x479372
jmp 0x4793a6
mov dword [ebx + 0x40], 0
mov byte [ebx + 0x44], 1
cmp byte [ebx + 0x50], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x838], esi
je 0x4793c0
push dword [ebx + 0x4c]
call fcn.00488953
add esp, 4
mov dword [ebx + 0x48], esi
test esi, esi
je 0x47941b
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
xor esi, esi
mov dword [ebx + 0x4c], eax
add esp, 4
mov byte [ebx + 0x50], 1
cmp dword [ebp - 0x838], esi
jle 0x479426
mov eax, dword [ebx + 0x4c]
push 4
lea ecx, [eax + esi*8]
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov ecx, edi
call fcn.004782f0
inc esi
cmp esi, dword [ebp - 0x838]
jl 0x4793f3
jmp 0x479426
mov dword [ebx + 0x4c], 0
mov byte [ebx + 0x50], 1
cmp byte [ebx + 0x5c], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x838], esi
je 0x479440
push dword [ebx + 0x58]
call fcn.00488953
add esp, 4
mov dword [ebx + 0x54], esi
test esi, esi
je 0x479495
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
xor esi, esi
mov dword [ebx + 0x58], eax
add esp, 4
mov byte [ebx + 0x5c], 1
cmp dword [ebp - 0x838], esi
jle 0x4794a0
mov eax, dword [ebx + 0x58]
push 1
lea ecx, [eax + esi*4]
mov eax, dword [edi + 8]
movzx eax, byte [eax]
mov dword [ecx], eax
mov ecx, edi
call fcn.004782f0
inc esi
cmp esi, dword [ebp - 0x838]
jl 0x479473
jmp 0x4794a0
mov dword [ebx + 0x58], 0
mov byte [ebx + 0x5c], 1
cmp byte [ebx + 0x68], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x838], esi
je 0x4794ba
push dword [ebx + 0x64]
call fcn.00488953
add esp, 4
mov dword [ebx + 0x60], esi
test esi, esi
je 0x479511
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00488b55
xor esi, esi
mov dword [ebx + 0x64], eax
add esp, 4
mov byte [ebx + 0x68], 1
cmp dword [ebp - 0x838], esi
jle 0x47951c
nop dword [eax]
mov eax, dword [ebx + 0x64]
push 4
lea ecx, [eax + esi*4]
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, edi
call fcn.004782f0
inc esi
cmp esi, dword [ebp - 0x838]
jl 0x4794f0
jmp 0x47951c
mov dword [ebx + 0x64], 0
mov byte [ebx + 0x68], 1
push dword [ebp - 0x818]
call fcn.00488953
add esp, 4
push dword [ebp - 0x824]
call fcn.00488953
add esp, 4
push dword [ebp - 0x830]
call fcn.00488953
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004888df
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0xeced70
call fcn.0048a9ab
mov ecx, 0x40000
call fcn.00477d00
mov ecx, 0x40000
mov edi, eax
call fcn.00477d00
push str.INTERNAL_ERROR:_must_be_dir_block
push edi
mov esi, eax
call fcn.0042e890
mov edx, esi
mov ecx, edi
call fcn.0045cec0
push esi
push 0xea0114
call fcn.00437320
add esp, 0x10
push 2
call fcn.00497ee7
int3