Function at 0x479270
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 0x4b4a22
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0xec8980]
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 - 0x840], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx + 4]
mov edi, dword [ebp + 0xc]
add eax, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x84c], ebx
mov dword [ebx], eax
mov dword [ebp - 0x844], edi
mov dword [esi], 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 [edi + 4]
call fcn.0047b120
add esp, 0xc
cmp dword [edi], 3
je 0x4793ac
cmp dword [0xecedf8], 0
je 0x479bb7
jmp 0x479bab
push dword [edi + 0x20]
mov ecx, esi
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [ebx]
push dword [edi + 0x14]
push dword [edi + 0x10]
push eax
call fcn.004787d0
mov ecx, esi
call fcn.00478a10
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x6c], eax
push ecx
push eax
mov ecx, esi
call fcn.0047c260
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 edi, dword [ebx + 0x6c]
push 0
mov dword [ebp - 0x840], edi
call fcn.00488f7d
add esp, 4
mov dword [ebp - 0x834], edi
mov edx, 4
test edi, edi
je 0x479445
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
jmp 0x479447
xor eax, eax
mov dword [ebp - 0x830], eax
mov byte [ebp - 0x82c], 1
test edi, edi
jle 0x479476
mov ebx, dword [ebp - 0x840]
mov edi, eax
push edi
mov ecx, esi
call fcn.00478be0
add edi, 4
sub ebx, 1
jne 0x479460
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 edi, dword [ebx + 0x6c]
push 0
mov dword [ebp - 0x83c], edi
call fcn.00488f7d
add esp, 4
mov dword [ebp - 0x828], edi
mov edx, 8
test edi, edi
je 0x4794e0
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
mov dword [ebp - 0x824], eax
jmp 0x4794ea
mov dword [ebp - 0x824], 0
xor edi, edi
mov byte [ebp - 0x820], 1
cmp dword [ebp - 0x83c], edi
jle 0x479520
mov ebx, dword [ebp - 0x83c]
mov ecx, esi
call fcn.00478a10
mov ecx, dword [ebp - 0x824]
mov dword [ecx + edi*8], eax
mov dword [ecx + edi*8 + 4], edx
inc edi
cmp edi, ebx
jl 0x479501
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 edi, dword [ebx + 0x6c]
push 0
mov dword [ebp - 0x83c], edi
call fcn.00488f7d
add esp, 4
mov dword [ebp - 0x81c], edi
test edi, edi
je 0x47958a
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
mov dword [ebp - 0x818], eax
jmp 0x479594
mov dword [ebp - 0x818], 0
xor edi, edi
mov byte [ebp - 0x814], 1
cmp dword [ebp - 0x83c], edi
jle 0x4795cf
mov ebx, dword [ebp - 0x83c]
nop dword [eax + eax]
mov ecx, esi
call fcn.00478a10
mov ecx, dword [ebp - 0x818]
mov dword [ecx + edi*8], eax
mov dword [ecx + edi*8 + 4], edx
inc edi
cmp edi, ebx
jl 0x4795b0
mov ebx, dword [ebp - 0x848]
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x7c], eax
test eax, eax
je 0x4795f4
xor ecx, ecx
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
jmp 0x4795f6
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x80], eax
mov byte [ebx + 0x84], 1
mov dword [ebp - 0x83c], ecx
cmp dword [ebx + 0x7c], ecx
jle 0x4796cf
mov eax, dword [ebp - 0x824]
xor edi, edi
mov esi, dword [ebp - 0x818]
sub eax, esi
mov dword [ebp - 0x840], eax
nop word [eax + eax]
mov eax, dword [ebx + 0x80]
lea edi, [edi + 0x28]
mov dword [edi + eax - 0x28], 2
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x80]
mov dword [eax + edi - 0x24], ecx
mov ecx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x840]
mov edx, dword [ecx + 8]
sub edx, dword [eax + esi]
mov ecx, dword [ecx + 0xc]
sbb ecx, dword [eax + esi + 4]
lea esi, [esi + 8]
mov eax, dword [ebx + 0x80]
mov dword [eax + edi - 0x20], edx
mov dword [eax + edi - 0x1c], ecx
mov eax, dword [ebx + 0x80]
mov dword [edi + eax - 0x18], 0
mov dword [edi + eax - 0x14], 0
mov eax, dword [ebx + 0x80]
mov ecx, dword [esi - 8]
mov edx, dword [esi - 4]
mov dword [edi + eax - 0x10], ecx
mov ecx, dword [ebp - 0x83c]
mov dword [edi + eax - 0xc], edx
inc ecx
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x83c], ecx
mov dword [eax + edi - 8], 0
cmp ecx, dword [ebx + 0x7c]
jl 0x479630
lea esi, [ebx + 4]
xor edx, edx
mov dword [ebx + 0x2c], 0
cmp dword [ebx + 0x6c], edx
jle 0x4796f8
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 0x4796e0
mov ecx, esi
call fcn.00478a10
lea edi, [ebx + 0x14]
mov ecx, esi
push edi
push eax
call fcn.0047c2f0
xor ecx, ecx
mov dword [ebp - 0x840], ecx
cmp dword [edi], ecx
jle 0x4797da
nop dword [eax + eax]
mov eax, dword [edi + 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 - 0x835], al
cmp byte [edx], 0
mov dword [ebp - 0x83c], ecx
je 0x4797bc
mov ebx, edi
test al, al
je 0x4798b8
cmp byte [esi], 0x2e
jne 0x4798a7
mov al, byte [esi + 1]
mov byte [ebp - 0x836], al
push 4
movsx eax, al
push eax
push 0xea01cc
call fcn.0048a8e0
add esp, 0xc
test eax, eax
je 0x47984c
mov ecx, dword [ebp - 0x83c]
xor eax, eax
cmp byte [ebp - 0x836], al
setne al
inc eax
add esi, eax
mov al, byte [ebp - 0x835]
cmp byte [esi], 0
jne 0x479750
mov ebx, dword [ebp - 0x848]
cmp ecx, dword [ebp - 0x844]
jbe 0x4797bc
cmp byte [ecx - 1], 0x5c
lea eax, [ecx - 1]
cmove ecx, eax
mov byte [ecx], 0
lea edi, [ebx + 0x14]
mov ecx, dword [ebp - 0x840]
inc ecx
mov dword [ebp - 0x840], ecx
cmp ecx, dword [edi]
jl 0x479720
lea esi, [ebx + 4]
cmp byte [ebx + 0x38], 0
mov edi, dword [ebx + 0x2c]
mov dword [ebp - 0x840], edi
je 0x4797f4
push dword [ebx + 0x34]
call fcn.00488f7d
add esp, 4
mov dword [ebx + 0x30], edi
test edi, edi
je 0x479908
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
xor edi, edi
mov dword [ebx + 0x34], eax
add esp, 4
mov byte [ebx + 0x38], 1
cmp dword [ebp - 0x840], edi
jle 0x479913
nop
mov eax, dword [ebx + 0x34]
mov ecx, esi
lea eax, [eax + edi*4]
push eax
call fcn.00478be0
inc edi
cmp edi, dword [ebp - 0x840]
jl 0x479830
jmp 0x479913
cmp byte [ebp - 0x836], 0x2e
jne 0x4798a1
mov al, byte [esi + 2]
mov byte [ebp - 0x836], al
push 4
movsx eax, al
push eax
push 0xea01cc
call fcn.0048a8e0
add esp, 0xc
test eax, eax
je 0x4798a1
mov ecx, dword [ebp + edi*4 - 0xc54]
xor eax, eax
cmp byte [ebp - 0x836], al
mov dword [ebp - 0x83c], ecx
setne al
add eax, 2
add esi, eax
cmp edi, 1
jle 0x479799
dec edi
jmp 0x479799
mov ecx, dword [ebp - 0x83c]
mov dword [ebp + edi*4 - 0xc50], ecx
inc edi
cmp edi, 0x100
cmove edi, ebx
movsx eax, byte [esi]
push eax
push 0xea0294
call fcn.0048ad50
add esp, 8
mov cl, 0x5c
test eax, eax
jne 0x4798d1
mov cl, byte [esi]
mov eax, dword [ebp - 0x83c]
mov byte [eax], cl
movsx eax, cl
push eax
push 0xea01cc
call fcn.0048ad50
mov ecx, dword [ebp - 0x83c]
add esp, 8
test eax, eax
setne al
inc esi
inc ecx
mov byte [ebp - 0x835], al
mov dword [ebp - 0x83c], ecx
jmp 0x47979f
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 0x47992d
push dword [ebx + 0x24]
call fcn.00488f7d
add esp, 4
mov dword [ebx + 0x20], esi
test esi, esi
je 0x47997b
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
mov dword [ebx + 0x24], eax
xor edi, edi
mov byte [ebx + 0x28], 1
test esi, esi
jle 0x479986
nop dword [eax]
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 4]
lea esi, [eax + edi*4]
call fcn.00478a10
inc edi
mov dword [esi], eax
cmp edi, dword [ebp - 0x844]
jl 0x479960
jmp 0x479986
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 0x4799a0
push dword [ebx + 0x40]
call fcn.00488f7d
add esp, 4
mov dword [ebx + 0x3c], esi
test esi, esi
je 0x4799ee
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
mov dword [ebx + 0x40], eax
xor edi, edi
mov byte [ebx + 0x44], 1
test esi, esi
jle 0x4799f9
nop
mov eax, dword [ebx + 0x40]
lea ecx, [ebx + 4]
lea esi, [eax + edi*8]
call fcn.00478a10
inc edi
mov dword [esi], eax
mov dword [esi + 4], edx
cmp edi, dword [ebp - 0x844]
jl 0x4799d0
jmp 0x4799f9
mov dword [ebx + 0x40], 0
mov byte [ebx + 0x44], 1
cmp byte [ebx + 0x50], 0
mov edi, dword [ebx + 0x2c]
mov dword [ebp - 0x844], edi
je 0x479a13
push dword [ebx + 0x4c]
call fcn.00488f7d
add esp, 4
mov dword [ebx + 0x48], edi
test edi, edi
je 0x479a6d
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
mov dword [ebx + 0x4c], eax
xor esi, esi
mov byte [ebx + 0x50], 1
test edi, edi
lea edi, [ebx + 4]
jle 0x479a7b
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.00478990
inc esi
cmp esi, dword [ebp - 0x844]
jl 0x479a45
jmp 0x479a7b
mov dword [ebx + 0x4c], 0
lea edi, [ebx + 4]
mov byte [ebx + 0x50], 1
cmp byte [ebx + 0x5c], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x840], esi
je 0x479a95
push dword [ebx + 0x58]
call fcn.00488f7d
add esp, 4
mov dword [ebx + 0x54], esi
test esi, esi
je 0x479aea
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
xor esi, esi
mov dword [ebx + 0x58], eax
add esp, 4
mov byte [ebx + 0x5c], 1
cmp dword [ebp - 0x840], esi
jle 0x479af5
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.00478990
inc esi
cmp esi, dword [ebp - 0x840]
jl 0x479ac8
jmp 0x479af5
mov dword [ebx + 0x58], 0
mov byte [ebx + 0x5c], 1
cmp byte [ebx + 0x68], 0
mov edi, dword [ebx + 0x2c]
je 0x479b09
push dword [ebx + 0x64]
call fcn.00488f7d
add esp, 4
mov dword [ebx + 0x60], edi
test edi, edi
je 0x479b56
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489180
add esp, 4
mov dword [ebx + 0x64], eax
xor esi, esi
mov byte [ebx + 0x68], 1
test edi, edi
jle 0x479b61
mov eax, dword [ebx + 0x64]
push 4
lea ecx, [eax + esi*4]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [ecx], eax
lea ecx, [ebx + 4]
call fcn.00478990
inc esi
cmp esi, edi
jl 0x479b38
jmp 0x479b61
mov dword [ebx + 0x64], 0
mov byte [ebx + 0x68], 1
push dword [ebp - 0x818]
call fcn.00488f7d
add esp, 4
push dword [ebp - 0x824]
call fcn.00488f7d
add esp, 4
push dword [ebp - 0x830]
call fcn.00488f7d
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.00488f09
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0xecedb8
call fcn.0048ae7b
mov ecx, 0x40000
call fcn.004783a0
mov ecx, 0x40000
mov edi, eax
call fcn.004783a0
push str.INTERNAL_ERROR:_must_be_dir_block
push edi
mov esi, eax
call fcn.0042e890
mov edx, esi
mov ecx, edi
call fcn.0045d2b0
push esi
push 0xea01f4
call fcn.00437440
add esp, 0x10
push 2
call fcn.004984c3
int3