Function at 0x4084c9
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.0040d03a
push 0x20a
lea eax, [ebp - 0x770]
push ebx
push eax
call fcn.0040d03a
push ebx
call fcn.00407dc7
add esp, 0x1c
test eax, eax
push edi
je 0x408522
lea eax, [ebp - 0x770]
push eax
push ebx
call dword [0x40e144]
jmp 0x408530
lea eax, [ebp - 0x564]
push eax
push ebx
call dword [0x40e0a8]
cmp eax, ebx
jne 0x40853b
push 1
jmp 0x4085c7
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x770]
push 0x80000000
push eax
call dword [0x40e12c]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x408564
push 2
jmp 0x4085c7
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 4]
call dword [0x40e120]
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 0x40859f
push dword [ebp - 0x20]
mov esi, dword [fcn.0040e17c]
call esi
push dword [ebp - 4]
call esi
push 4
jmp 0x4085c7
push ebx
push dword [ebp - 4]
call dword [0x40e098]
cmp eax, 0xffffffff
jne 0x4085da
push dword [ebp - 0x20]
mov esi, dword [fcn.0040e17c]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40e140]
push 5
pop esi
call dword [fcn.0040e080]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
jmp 0x408b29
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 0x408689
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 0x40860f
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push 0x42a790
call fcn.0040d02e
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x408677
push 0x1c
lea eax, [ebp - 0x5c]
push 0x42a790
push eax
call fcn.0040d02e
add esp, 0xc
test dword [ebp - 0x5c], 0xfffffff0
jne 0x408677
cmp dword [ebp - 0x58], 0xdeadbeef
jne 0x408677
cmp dword [ebp - 0x4c], 0x74736e49
jne 0x408677
cmp dword [ebp - 0x50], 0x74666f73
jne 0x408677
cmp dword [ebp - 0x54], 0x6c6c754e
jne 0x408677
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 0x4085f1
cmp word [edi], 0x5a4d
je 0x408694
push 6
jmp 0x4086db
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x4086a5
push 7
jmp 0x4086db
cmp esi, ebx
jne 0x4086d2
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 0x4086ca
add ecx, 0x10
add esi, dword [ecx]
add ecx, 0x28
dec edx
jne 0x4086c2
cmp esi, ebx
jne 0x4086d2
push 8
jmp 0x4086db
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
ja 0x4086fa
push 9
mov esi, dword [fcn.0040e17c]
pop ebx
push dword [ebp - 0x20]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40e140]
mov eax, ebx
jmp 0x408b29
mov eax, dword [eax + 0x98]
cmp eax, ebx
je 0x408727
lea ecx, [eax + edi]
cmp esi, ecx
jne 0x408727
push dword [ebp - 0x20]
mov esi, dword [fcn.0040e17c]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40e140]
jmp 0x408b26
sub ecx, esi
mov edi, ecx
push edi
mov dword [ebp - 0x24], edi
call fcn.0040d04c
push edi
push ebx
push eax
mov dword [ebp + 0x14], eax
call fcn.0040d03a
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040d02e
add esp, 0x1c
cmp byte [esi], 0x3c
je 0x408910
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.0040d03a
push esi
lea eax, [ebp - 0x35c]
push ebx
push eax
call fcn.0040d03a
push esi
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0040d03a
push esi
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.0040d03a
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.0040d02e
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.0040d02e
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.0040d02e
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.0040d02e
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 0x408832
mov eax, dword [ebp - 0x14]
add eax, 8
cmp esi, eax
jae 0x4088cb
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jne 0x40883d
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
jne 0x408848
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x34]
jne 0x408853
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x3c]
jne 0x40885e
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 0x4088ab
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
jmp 0x4088b9
cmp esi, 8
jne 0x4088b9
cmp cl, 0x3c
jne 0x408aff
inc esi
inc dword [ebp - 0x28]
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
inc dword [ebp - 8]
jmp 0x40881f
add edi, 8
cmp dword [ebp - 0x2c], ebx
jbe 0x4088e7
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
push dword [ebp + 0x14]
call fcn.0040d090
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 0x408910
push 0xa
lea eax, [esi + edi]
push str.__LICENSE_
push eax
call fcn.0040d02e
add esp, 0xc
add esi, 0xa
mov dword [ebp - 0x24], esi
push dword [ebp - 0x20]
mov esi, dword [fcn.0040e17c]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x30]
call dword [0x40e140]
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
jle 0x4089fc
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, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jb 0x40898d
push eax
mov eax, dword [ebp - 4]
push dword [eax - 8]
push edi
call fcn.0040d0a6
add esp, 0xc
test eax, eax
je 0x408999
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x14], eax
jb 0x40898d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], ebx
je 0x40898d
push eax
mov eax, ecx
push dword [eax + 4]
push edi
call fcn.0040d0a6
add esp, 0xc
test eax, eax
je 0x4089ae
add dword [ebp - 4], 0x30
inc esi
cmp esi, 0x10
jb 0x408949
jmp 0x4089ec
mov ecx, dword [ebp + 0x10]
lea eax, [esi + esi*2]
shl eax, 4
add eax, ecx
mov ecx, dword [eax + 0xc]
add ecx, edi
mov dword [eax + 0x1c], ecx
jmp 0x4089ec
mov ecx, dword [ebp + 0x10]
lea eax, [esi + esi*2]
shl eax, 4
lea esi, [eax + ecx]
mov eax, edi
mov dword [esi + 0x20], edi
sub eax, dword [esi + 0x1c]
mov dword [esi + 0x28], eax
inc eax
push eax
call fcn.0040d04c
pop ecx
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
jbe 0x4089e3
inc ecx
push ecx
push dword [esi + 0x1c]
push eax
call dword [fcn.0040e0cc]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov byte [eax + ecx], bl
inc dword [ebp - 8]
inc edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jl 0x408935
cmp dword [ebp + 0x14], ebx
je 0x408a0a
push dword [ebp + 0x14]
call fcn.0040d034
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], 0x10
lea esi, [eax + 0x2c]
cmp dword [ebp + 0xc], ebx
je 0x408a71
push dword [ebp + 0xc]
call dword [fcn.0040e0ec]
test eax, eax
je 0x408ad5
push dword [esi]
push dword [ebp + 0xc]
call dword [fcn.0040e184]
test eax, eax
jne 0x408ad5
mov edx, dword [esi - 8]
cmp edx, ebx
je 0x408ab5
mov eax, dword [esi - 4]
cmp eax, ebx
jbe 0x408ab5
mov ecx, dword [esi]
cmp ecx, ebx
je 0x408ab5
cmp dword [ebp - 0x18], ebx
je 0x408a9c
cmp dword [esi - 0x2c], 3
je 0x408a9c
inc eax
push eax
push edx
push 1
push ebx
push ecx
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x408ad5
mov eax, dword [esi - 4]
inc eax
push eax
push dword [esi - 8]
push 1
push ebx
push dword [esi]
push dword [ebp - 0x1c]
call edi
jmp 0x408ad5
cmp dword [ebp - 0x18], ebx
je 0x408ac5
push dword [esi]
push dword [ebp - 0x18]
call dword [fcn.0040e030]
cmp dword [ebp - 0x1c], ebx
je 0x408ad5
push dword [esi]
push dword [ebp - 0x1c]
call dword [fcn.0040e030]
add esi, 0x30
dec dword [ebp + 0x10]
jne 0x408a50
cmp dword [ebp - 0x18], ebx
mov esi, dword [fcn.0040e034]
je 0x408af1
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x408afb
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x408b29
push dword [ebp - 0x20]
mov esi, dword [fcn.0040e17c]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x30]
call dword [0x40e140]
cmp dword [ebp + 0x14], ebx
je 0x408b26
push dword [ebp + 0x14]
call fcn.0040d034
pop ecx
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret