Function at 0x479430
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b4b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi]
mov byte [ebp - 0x18], 0
mov edi, dword [esi + 4]
push 0x3a8
mov eax, dword [edx]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, dword [edx]
lea edx, [ebp - 0x1c]
push ecx
mov eax, dword [eax + 0x5c]
cmp eax, dword [ecx + 0x5c]
lea ecx, [ebp - 0xa0]
setne al
mov byte [ebp - 0xa4], al
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
call fcn.0046a8b0
add esp, 8
mov ecx, dword [eax]
test ecx, ecx
je 0x4794c7
mov ecx, dword [ecx + 8]
jmp 0x4794c9
xor ecx, ecx
mov eax, dword [esi]
push ecx
mov eax, dword [eax]
push dword [eax + 0x5c]
push str.Signature___d____s_
call fcn.004760c0
mov edx, dword [esi + 8]
add esp, 0xc
mov ecx, edi
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push eax
push dword [edx]
call fcn.00479350
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x479521
add dword [eax + 4], 0xffffffff
jne 0x479521
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x479521
push eax
call fcn.004eb01a
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor edi, edi
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xa4], edi
add dword [eax], 4
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 4]
jne 0x47959b
push ecx
push 0x3ec
push ecx
push 0x52daa8
call fcn.00475550
mov ecx, dword [esi]
mov edi, eax
mov dword [ebp - 0xa4], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [ecx]
push ecx
mov eax, dword [eax]
cdq
add eax, dword [ecx + 0x248]
push 0x406
adc edx, dword [ecx + 0x24c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], 0x14
mov eax, dword [esi + 0x18]
push ecx
push 0x52da90
mov ecx, dword [eax]
call fcn.00475550
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov eax, dword [esi]
push ecx
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
cmp dword [eax + 0x10], 0
je 0x4795c8
push str.IMAGE_FILE_HEADER
push str._s__0x_04X_
push dword [esi + 0x20]
call fcn.00423fb0
add esp, 0x10
jmp 0x4795fa
mov edi, dword [ebp - 0x9c]
mov eax, ecx
cdq
add eax, dword [edi + 0x248]
adc edx, dword [edi + 0x24c]
push edx
push eax
push str.IMAGE_FILE_HEADER
push str._s__0x_016llX___0x_04X_
push dword [esi + 0x20]
call fcn.00423fb0
mov edi, dword [ebp - 0xa4]
add esp, 0x18
mov eax, dword [esi + 0x14]
add dword [eax], 0x14
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x479611
mov ecx, dword [ecx + 8]
jmp 0x479613
xor ecx, ecx
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov edx, dword [edx]
mov dword [ebp - 0x9c], edx
movlpd qword [ebp - 0x8c], xmm0
mov eax, dword [eax]
movlpd qword [ebp - 0x84], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], 0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x90], 4
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0xffff0002
test ecx, ecx
je 0x4796a6
mov dword [ebp - 0x80], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479684
sub ecx, edx
mov dword [ebp - 0x90], 5
mov edx, dword [ebp - 0x9c]
sar ecx, 1
mov dword [ebp - 0x7c], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x6c], edi
test eax, eax
jne 0x4796b8
mov dword [ebp - 0xa0], eax
jmp 0x4796d3
lea ecx, [ebp - 0x98]
push ecx
push 0
push 0x1132
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0xa0], eax
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 4]
movzx edx, word [ecx + 2]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx]
cmp dx, word [ecx + 0x62]
mov ecx, str.NumberOfSections
setne al
mov byte [ebp - 0x9c], al
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.0047bff0
add esp, 4
mov ecx, edi
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
call fcn.00479350
mov eax, dword [esi + 0x24]
mov ecx, str.Machine
mov edi, dword [esi + 4]
movzx edx, word [eax]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
cmp dx, word [eax + 0x60]
setne al
mov byte [ebp - 0x9c], al
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.0047bff0
add esp, 4
mov ecx, edi
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
call fcn.00479350
mov eax, dword [esi + 0x24]
xorps xmm0, xmm0
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x4c], xmm0
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0
push eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.004f360e
add esp, 8
test edi, edi
jne 0x4797a7
push 0x28
call fcn.004dadf8
add esp, 4
mov edi, eax
xorps xmm0, xmm0
mov eax, 0x270f
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
movq qword [edi + 0x20], xmm0
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x48]
add ecx, 0x76c
push dword [ebp - 0x44]
cmp ecx, eax
push dword [ebp - 0x40]
cmovg ecx, eax
mov eax, dword [ebp - 0x3c]
inc eax
push eax
push ecx
push str._04d__02d__02d__02d:_02d:_02d
push 0x14
push edi
call fcn.00407ae0
mov eax, dword [esi + 0x28]
add esp, 0x24
mov edx, dword [esi + 0x24]
mov ecx, str.TimeDateStamp
mov edi, dword [esi + 0x2c]
push dword [eax]
mov edx, dword [edx + 4]
call fcn.0047c1d0
add esp, 4
push edi
push eax
push str._s___s
push dword [esi + 0x30]
call fcn.0043b200
mov eax, dword [esi + 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 0x64]
mov ecx, dword [esi + 4]
setne al
movzx eax, al
push eax
push dword [ebp - 0xa4]
push dword [esi + 0x30]
push dword [ebp - 0xa0]
call fcn.00479350
mov eax, dword [esi + 0x24]
mov ecx, str.PointerToSymbolTable
mov edi, dword [esi + 4]
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
cmp edx, dword [eax + 0x68]
setne al
mov byte [ebp - 0x9c], al
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.0047c1d0
add esp, 4
mov ecx, edi
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
call fcn.00479350
mov eax, dword [esi + 0x24]
mov ecx, str.NumberOfSymbols
mov edi, dword [esi + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
cmp edx, dword [eax + 0x6c]
setne al
mov byte [ebp - 0x9c], al
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.0047c1d0
add esp, 4
push dword [ebp - 0x9c]
mov ecx, edi
push dword [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
call fcn.00479350
mov eax, dword [esi + 0x24]
mov ecx, str.SizeOfOptionalHeader
mov edi, dword [esi + 4]
movzx edx, word [eax + 0x10]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
cmp dx, word [eax + 0x70]
setne al
mov byte [ebp - 0x9c], al
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.0047bff0
add esp, 4
mov ecx, edi
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
call fcn.00479350
mov eax, dword [esi + 0x24]
mov ecx, str.Characteristics
mov edi, dword [esi + 4]
movzx edx, word [eax + 0x12]
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
cmp dx, word [eax + 0x72]
setne al
mov byte [ebp - 0x9c], al
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.0047bff0
add esp, 4
mov ecx, edi
push dword [ebp - 0x9c]
push dword [ebp - 0xa4]
push eax
push dword [ebp - 0xa0]
call fcn.00479350
mov esi, dword [esi + 0x1c]
mov edi, dword [ebp - 0xa0]
push 0
push edi
push 0x1127
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and al, 0x20
movzx eax, al
neg eax
push edi
sbb eax, eax
add eax, 2
push eax
push 0x1102
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004dadd7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret