Function at 0x4087c6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x770
push ebx
push esi
push edi
mov edi, 0x105
xor ebx, ebx
push edi
lea eax, [ebp - 0x564]
push ebx
push eax
xor esi, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040d4ee
push 0x20a
lea eax, [ebp - 0x770]
push ebx
push eax
call fcn.0040d4ee
push ebx
call fcn.00407fcd
add esp, 0x1c
test eax, eax
push edi
je 0x40881f
lea eax, [ebp - 0x770]
push eax
push ebx
call dword [0x40e14c]
jmp 0x40882d
lea eax, [ebp - 0x564]
push eax
push ebx
call dword [0x40e0a8]
cmp eax, ebx
jne 0x408838
push 1
jmp 0x4088c4
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x770]
push 0x80000000
push eax
call dword [0x40e10c]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x408861
push 2
jmp 0x4088c4
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 4]
call dword [0x40e128]
push ebx
push ebx
push ebx
push 4
push eax
mov dword [ebp - 0x20], eax
call dword [0x40e09c]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
jne 0x40889c
push dword [ebp - 0x20]
mov esi, dword [0x40e184]
call esi
push dword [ebp - 4]
call esi
push 4
jmp 0x4088c4
push ebx
push dword [ebp - 4]
call dword [0x40e098]
cmp eax, 0xffffffff
jne 0x4088d7
push dword [ebp - 0x20]
mov esi, dword [0x40e184]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40e148]
push 5
pop esi
call dword [fcn.0040e080]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
jmp 0x408e55
lea ecx, [eax + edi]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0x14], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
jle 0x408986
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
mov dword [ebp - 0x10], ecx
and eax, 0x7e00
add eax, 0x200
cmp ecx, eax
jl 0x40890c
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push 0x42a854
call fcn.0040d4e2
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x408974
push 0x1c
lea eax, [ebp - 0x5c]
push 0x42a854
push eax
call fcn.0040d4e2
add esp, 0xc
test dword [ebp - 0x5c], 0xfffffff0
jne 0x408974
cmp dword [ebp - 0x58], 0xdeadbeef
jne 0x408974
cmp dword [ebp - 0x4c], 0x74736e49
jne 0x408974
cmp dword [ebp - 0x50], 0x74666f73
jne 0x408974
cmp dword [ebp - 0x54], 0x6c6c754e
jne 0x408974
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
add dword [ebp + 0x14], eax
cmp dword [ebp - 8], ebx
jg 0x4088ee
cmp word [edi], 0x5a4d
je 0x408991
push 6
jmp 0x4089d8
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x4089a2
push 7
jmp 0x4089d8
cmp esi, ebx
jne 0x4089cf
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 6]
mov esi, dword [ecx + eax + 0x2c]
lea ecx, [ecx + eax + 0x18]
add esi, edi
cmp edx, ebx
jle 0x4089c7
add ecx, 0x10
add esi, dword [ecx]
add ecx, 0x28
dec edx
jne 0x4089bf
cmp esi, ebx
jne 0x4089cf
push 8
jmp 0x4089d8
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
ja 0x4089f7
push 9
mov esi, dword [0x40e184]
pop ebx
push dword [ebp - 0x20]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40e148]
mov eax, ebx
jmp 0x408e55
mov eax, dword [eax + 0x98]
cmp eax, ebx
je 0x408a24
lea ecx, [eax + edi]
cmp esi, ecx
jne 0x408a24
push dword [ebp - 0x20]
mov esi, dword [0x40e184]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40e148]
jmp 0x408e52
sub ecx, esi
mov edi, ecx
push edi
mov dword [ebp - 0x24], edi
call fcn.0040d500
push edi
push ebx
push eax
mov dword [ebp + 0x14], eax
call fcn.0040d4ee
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040d4e2
add esp, 0x1c
cmp byte [esi], 0x3c
je 0x408c0d
mov esi, 0xff
lea eax, [ebp - 0x15c]
push esi
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040d4ee
push esi
lea eax, [ebp - 0x35c]
push ebx
push eax
call fcn.0040d4ee
push esi
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0040d4ee
push esi
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.0040d4ee
mov eax, edi
movzx ecx, byte [eax]
lea edi, [ecx + eax + 1]
mov al, byte [ecx + eax + 1]
inc edi
movzx eax, al
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.0040d4e2
mov al, byte [edi + esi]
add edi, esi
movzx eax, al
inc edi
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0x35c]
push edi
push eax
call fcn.0040d4e2
mov al, byte [edi + esi]
add edi, esi
movzx eax, al
add esp, 0x48
inc edi
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0x45c]
push edi
push eax
call fcn.0040d4e2
mov al, byte [edi + esi]
add edi, esi
movzx eax, al
inc edi
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x25c]
push edi
push eax
call fcn.0040d4e2
add esp, 0x18
add edi, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
xor esi, esi
cmp esi, 8
jb 0x408b2f
mov eax, dword [ebp - 0x14]
add eax, 8
cmp esi, eax
jae 0x408bc8
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jne 0x408b3a
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
jne 0x408b45
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x34]
jne 0x408b50
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x3c]
jne 0x408b5b
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 0x28]
lea eax, [esi + edi]
mov cl, byte [ebp + ecx - 0x15c]
xor byte [eax], cl
mov ecx, dword [ebp - 0x10]
mov dl, byte [eax]
mov cl, byte [ebp + ecx - 0x35c]
xor cl, dl
mov edx, dword [ebp - 0xc]
mov byte [eax], cl
mov dl, byte [ebp + edx - 0x45c]
xor dl, cl
mov ecx, dword [ebp - 8]
mov byte [eax], dl
mov cl, byte [ebp + ecx - 0x25c]
xor cl, dl
cmp esi, 7
mov byte [eax], cl
jne 0x408ba8
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
jmp 0x408bb6
cmp esi, 8
jne 0x408bb6
cmp cl, 0x3c
jne 0x408e2b
inc esi
inc dword [ebp - 0x28]
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
inc dword [ebp - 8]
jmp 0x408b1c
add edi, 8
cmp dword [ebp - 0x2c], ebx
jbe 0x408be4
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
push dword [ebp + 0x14]
call fcn.0040d540
pop ecx
mov dword [ebp + 0x14], eax
pop ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
lea esi, [eax + ecx]
mov dword [ebp - 0x24], esi
jbe 0x408c0d
push 0xa
lea eax, [esi + edi]
push str.__LICENSE_
push eax
call fcn.0040d4e2
add esp, 0xc
add esi, 0xa
mov dword [ebp - 0x24], esi
push dword [ebp - 0x20]
mov esi, dword [0x40e184]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x30]
call dword [0x40e148]
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
jle 0x408d1c
mov eax, dword [ebp - 0x24]
xor esi, esi
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jb 0x408c8a
push eax
mov eax, dword [ebp - 4]
push dword [eax - 8]
push edi
call fcn.0040d556
add esp, 0xc
test eax, eax
je 0x408c96
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x14], eax
jb 0x408c8a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], ebx
je 0x408c8a
push eax
mov eax, ecx
push dword [eax + 4]
push edi
call fcn.0040d556
add esp, 0xc
test eax, eax
je 0x408ca8
add dword [ebp - 4], 0x34
inc esi
cmp esi, 0x12
jb 0x408c46
jmp 0x408d0c
imul esi, esi, 0x34
mov eax, dword [ebp + 0x10]
add eax, esi
mov ecx, dword [eax + 0x10]
add ecx, edi
mov dword [eax + 0x20], ecx
jmp 0x408d0c
imul esi, esi, 0x34
mov eax, dword [ebp + 0x10]
add esi, eax
mov eax, edi
mov dword [esi + 0x24], edi
sub eax, dword [esi + 0x20]
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x408ceb
inc eax
push eax
call fcn.0040d500
pop ecx
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
jbe 0x408ce0
inc ecx
push ecx
push dword [esi + 0x20]
push eax
call dword [fcn.0040e0cc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov byte [eax + ecx], bl
jmp 0x408d0c
cmp ecx, 1
jne 0x408d0c
cmp eax, ebx
jbe 0x408d0c
push eax
call fcn.0040d500
mov dword [esi + 0x28], eax
push dword [esi + 0x2c]
push dword [esi + 0x20]
push eax
call fcn.0040d4e2
add esp, 0x10
inc dword [ebp - 8]
inc edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jl 0x408c32
cmp dword [ebp + 0x14], ebx
je 0x408d2a
push dword [ebp + 0x14]
call fcn.0040d4e8
pop ecx
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, 0x2001f
push ebx
push edi
mov esi, dword [fcn.0040e010]
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x80000002
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x80000001
call esi
mov eax, dword [ebp + 0x10]
mov edi, dword [fcn.0040e00c]
mov dword [ebp + 0x10], 0x12
lea esi, [eax + 0x2c]
cmp dword [esi - 0x28], ebx
jne 0x408e01
cmp dword [ebp + 0xc], ebx
je 0x408d9b
push dword [ebp + 0xc]
call dword [fcn.0040e0ec]
test eax, eax
je 0x408e01
push dword [esi + 4]
push dword [ebp + 0xc]
call dword [fcn.0040e18c]
test eax, eax
jne 0x408e01
mov edx, dword [esi - 4]
cmp edx, ebx
je 0x408ddf
mov eax, dword [esi]
cmp eax, ebx
jbe 0x408ddf
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x408ddf
cmp dword [ebp - 0x18], ebx
je 0x408dc6
cmp dword [esi - 0x2c], 3
je 0x408dc6
inc eax
push eax
push edx
push 1
push ebx
push ecx
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x408e01
mov eax, dword [esi]
inc eax
push eax
push dword [esi - 4]
push 1
push ebx
push dword [esi + 4]
push dword [ebp - 0x1c]
call edi
jmp 0x408e01
cmp dword [ebp - 0x18], ebx
je 0x408df0
push dword [esi + 4]
push dword [ebp - 0x18]
call dword [fcn.0040e030]
cmp dword [ebp - 0x1c], ebx
je 0x408e01
push dword [esi + 4]
push dword [ebp - 0x1c]
call dword [fcn.0040e030]
add esi, 0x34
dec dword [ebp + 0x10]
jne 0x408d70
cmp dword [ebp - 0x18], ebx
mov esi, dword [fcn.0040e034]
je 0x408e1d
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x408e27
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x408e55
push dword [ebp - 0x20]
mov esi, dword [0x40e184]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x30]
call dword [0x40e148]
cmp dword [ebp + 0x14], ebx
je 0x408e52
push dword [ebp + 0x14]
call fcn.0040d4e8
pop ecx
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret