Function at 0x4165b0
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465c77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x10d8
push ebx
call fcn.00464a40
push esi
push edi
push 0x30
lea eax, [ebp - 0x60]
mov dword [ebp - 0x28], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x24], edi
call fcn.00445960
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp - 0x20], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x1c]
mov ecx, 0x10000
mov esi, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [edi]
lea esi, [ebp - 0x60]
push esi
push edx
push ecx
mov eax, dword [eax + 0x18]
mov ecx, edi
call eax
mov esi, dword [ebp - 0x1c]
cmp eax, 0xc000000d
je 0x416a6a
cmp eax, 0xc0000022
je 0x416a6a
cmp eax, 0xc000010a
je 0x416a6a
test eax, eax
jne 0x416a44
cmp dword [ebp - 0x40], 0x1000
jne 0x416a44
cmp dword [ebp - 0x38], 0x1000000
jne 0x416a44
mov edi, dword [ebp - 0x58]
cmp esi, edi
mov esi, dword [ebp - 0x54]
jne 0x4166ac
cmp dword [ebp - 0x14], esi
je 0x416a41
push 0x1000
lea eax, [ebp - 0x10e8]
push 0
push eax
call fcn.00445960
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x8e8]
add esp, 0xc
mov eax, dword [eax]
push 0x800
push ecx
push 2
mov eax, dword [eax + 0x14]
push esi
push edi
mov edi, dword [ebp - 0x24]
mov ecx, edi
call eax
test eax, eax
js 0x416a33
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0xc4], 7
movups xmmword [ebp - 0xd8], xmm0
mov word [ebp - 0xd8], ax
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
push 0
push 0x800
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10e8]
mov eax, dword [edi]
push ecx
push dword [ebp - 0x54]
mov ecx, edi
push dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x41676a
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0
call fcn.00404020
jmp 0x416a44
mov eax, dword [ebp - 0x10ac]
lea ecx, [ebp - 0x10e8]
add eax, ecx
mov ecx, 0x5a4d
cmp word [ebp - 0x10e8], cx
jne 0x4167d6
cmp dword [eax], 0x4550
jne 0x4167d6
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x4167b4
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 0
jmp 0x41685d
mov edx, 0x20b
cmp cx, dx
jne 0x416756
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 1
jmp 0x41685d
push 0x30
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00445960
mov esi, dword [ebp - 0x54]
add esp, 0xc
mov eax, dword [ebp - 0x58]
cmp esi, 0x7fff
ja 0x416853
jb 0x416800
cmp eax, 0xfffeffff
jae 0x416853
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
lea ecx, [ebp - 0x90]
push ecx
push esi
push eax
mov ecx, edi
call edx
test eax, eax
js 0x416844
cmp dword [ebp - 0x68], 0x1000000
jne 0x416844
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x74]
adc esi, dword [ebp - 0x8c]
cmp esi, 0x7fff
jb 0x416800
ja 0x416853
cmp eax, 0xfffeffff
jb 0x416800
jmp 0x416853
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 3
sub esp, 0x18
xorps xmm0, xmm0
cmp byte [edi + 0xe], 1
mov edx, esp
jne 0x4168a0
mov esi, dword [ebp - 0x8e4]
mov ecx, esi
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416890
sub ecx, dword [ebp - 0x14]
jmp 0x4168ce
mov esi, dword [ebp - 0x8e0]
mov ecx, esi
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4168c0
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00405e90
lea ecx, [ebp - 0x78]
call fcn.0040f390
add esp, 0x18
lea ecx, [ebp - 0xc0]
push eax
call fcn.00404c20
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x41692a
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416920
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a82
push ecx
push edx
call fcn.004418b1
add esp, 8
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x78]
call fcn.0040ebc0
push eax
lea ecx, [ebp - 0xd8]
call fcn.00404c20
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x41697e
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416974
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416a82
push ecx
push edx
call fcn.004418b1
add esp, 8
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x58]
xorps xmm0, xmm0
mov dword [ebp - 0xdc], ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe0], eax
movlpd qword [ebp - 0xa0], xmm0
mov byte [ebp - 0x98], 0
call fcn.00405710
mov edx, eax
mov byte [ebp - 4], 2
mov esi, dword [ebx + 8]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4169f0
mov ecx, eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [esi + 4], 8
jmp 0x4169f9
push edx
push eax
mov ecx, esi
call fcn.00417a40
mov esi, dword [ebp - 0xe4]
test esi, esi
je 0x416a24
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x416a24
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x416a24
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0
call fcn.00404020
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
jmp 0x416a44
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x44]
adc edx, dword [ebp - 0x5c]
cmp edx, 0x7fff
ja 0x416a6a
jb 0x416644
cmp ecx, 0xfffeffff
jb 0x416644
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00449a39
int3