Function at 0x408675
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.0040cc0a
push 0x20a
lea eax, [ebp - 0x770]
push ebx
push eax
call fcn.0040cc0a
push ebx
call fcn.00407eb6
add esp, 0x1c
test eax, eax
push edi
je 0x4086ce
lea eax, [ebp - 0x770]
push eax
push ebx
call dword [0x40d14c]
jmp 0x4086dc
lea eax, [ebp - 0x564]
push eax
push ebx
call dword [0x40d0a8]
cmp eax, ebx
jne 0x4086e7
push 1
jmp 0x408773
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x770]
push 0x80000000
push eax
call dword [0x40d10c]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x408710
push 2
jmp 0x408773
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 4]
call dword [0x40d128]
push ebx
push ebx
push ebx
push 4
push eax
mov dword [ebp - 0x20], eax
call dword [0x40d09c]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
jne 0x40874b
push dword [ebp - 0x20]
mov esi, dword [0x40d184]
call esi
push dword [ebp - 4]
call esi
push 4
jmp 0x408773
push ebx
push dword [ebp - 4]
call dword [0x40d098]
cmp eax, 0xffffffff
jne 0x408786
push dword [ebp - 0x20]
mov esi, dword [0x40d184]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40d148]
push 5
pop esi
call dword [fcn.0040d080]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
jmp 0x408d04
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 0x408835
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 0x4087bb
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push 0x429804
call fcn.0040cbfe
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jne 0x408823
push 0x1c
lea eax, [ebp - 0x5c]
push 0x429804
push eax
call fcn.0040cbfe
add esp, 0xc
test dword [ebp - 0x5c], 0xfffffff0
jne 0x408823
cmp dword [ebp - 0x58], 0xdeadbeef
jne 0x408823
cmp dword [ebp - 0x4c], 0x74736e49
jne 0x408823
cmp dword [ebp - 0x50], 0x74666f73
jne 0x408823
cmp dword [ebp - 0x54], 0x6c6c754e
jne 0x408823
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 0x40879d
cmp word [edi], 0x5a4d
je 0x408840
push 6
jmp 0x408887
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
je 0x408851
push 7
jmp 0x408887
cmp esi, ebx
jne 0x40887e
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 0x408876
add ecx, 0x10
add esi, dword [ecx]
add ecx, 0x28
dec edx
jne 0x40886e
cmp esi, ebx
jne 0x40887e
push 8
jmp 0x408887
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
ja 0x4088a6
push 9
mov esi, dword [0x40d184]
pop ebx
push dword [ebp - 0x20]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40d148]
mov eax, ebx
jmp 0x408d04
mov eax, dword [eax + 0x98]
cmp eax, ebx
je 0x4088d3
lea ecx, [eax + edi]
cmp esi, ecx
jne 0x4088d3
push dword [ebp - 0x20]
mov esi, dword [0x40d184]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [0x40d148]
jmp 0x408d01
sub ecx, esi
mov edi, ecx
push edi
mov dword [ebp - 0x24], edi
call fcn.0040cc1c
push edi
push ebx
push eax
mov dword [ebp + 0x14], eax
call fcn.0040cc0a
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040cbfe
add esp, 0x1c
cmp byte [esi], 0x3c
je 0x408abc
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.0040cc0a
push esi
lea eax, [ebp - 0x35c]
push ebx
push eax
call fcn.0040cc0a
push esi
lea eax, [ebp - 0x45c]
push ebx
push eax
call fcn.0040cc0a
push esi
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.0040cc0a
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.0040cbfe
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.0040cbfe
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.0040cbfe
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.0040cbfe
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 0x4089de
mov eax, dword [ebp - 0x14]
add eax, 8
cmp esi, eax
jae 0x408a77
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x38]
jne 0x4089e9
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
jne 0x4089f4
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x34]
jne 0x4089ff
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x3c]
jne 0x408a0a
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 0x408a57
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
jmp 0x408a65
cmp esi, 8
jne 0x408a65
cmp cl, 0x3c
jne 0x408cda
inc esi
inc dword [ebp - 0x28]
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
inc dword [ebp - 8]
jmp 0x4089cb
add edi, 8
cmp dword [ebp - 0x2c], ebx
jbe 0x408a93
mov eax, dword [ebp - 0x24]
add eax, 0xa
push eax
push dword [ebp + 0x14]
call fcn.0040cc60
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 0x408abc
push 0xa
lea eax, [esi + edi]
push str.__LICENSE_
push eax
call fcn.0040cbfe
add esp, 0xc
add esi, 0xa
mov dword [ebp - 0x24], esi
push dword [ebp - 0x20]
mov esi, dword [0x40d184]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x30]
call dword [0x40d148]
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
jle 0x408bcb
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 0x408b39
push eax
mov eax, dword [ebp - 4]
push dword [eax - 8]
push edi
call fcn.0040cc76
add esp, 0xc
test eax, eax
je 0x408b45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x14], eax
jb 0x408b39
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], ebx
je 0x408b39
push eax
mov eax, ecx
push dword [eax + 4]
push edi
call fcn.0040cc76
add esp, 0xc
test eax, eax
je 0x408b57
add dword [ebp - 4], 0x34
inc esi
cmp esi, 0x11
jb 0x408af5
jmp 0x408bbb
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 0x408bbb
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 0x408b9a
inc eax
push eax
call fcn.0040cc1c
pop ecx
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
jbe 0x408b8f
inc ecx
push ecx
push dword [esi + 0x20]
push eax
call dword [fcn.0040d0cc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov byte [eax + ecx], bl
jmp 0x408bbb
cmp ecx, 1
jne 0x408bbb
cmp eax, ebx
jbe 0x408bbb
push eax
call fcn.0040cc1c
mov dword [esi + 0x28], eax
push dword [esi + 0x2c]
push dword [esi + 0x20]
push eax
call fcn.0040cbfe
add esp, 0x10
inc dword [ebp - 8]
inc edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jl 0x408ae1
cmp dword [ebp + 0x14], ebx
je 0x408bd9
push dword [ebp + 0x14]
call fcn.0040cc04
pop ecx
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, 0x2001f
push ebx
push edi
mov esi, dword [fcn.0040d010]
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.0040d00c]
mov dword [ebp + 0x10], 0x11
lea esi, [eax + 0x2c]
cmp dword [esi - 0x28], ebx
jne 0x408cb0
cmp dword [ebp + 0xc], ebx
je 0x408c4a
push dword [ebp + 0xc]
call dword [fcn.0040d0ec]
test eax, eax
je 0x408cb0
push dword [esi + 4]
push dword [ebp + 0xc]
call dword [fcn.0040d18c]
test eax, eax
jne 0x408cb0
mov edx, dword [esi - 4]
cmp edx, ebx
je 0x408c8e
mov eax, dword [esi]
cmp eax, ebx
jbe 0x408c8e
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x408c8e
cmp dword [ebp - 0x18], ebx
je 0x408c75
cmp dword [esi - 0x2c], 3
je 0x408c75
inc eax
push eax
push edx
push 1
push ebx
push ecx
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x408cb0
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 0x408cb0
cmp dword [ebp - 0x18], ebx
je 0x408c9f
push dword [esi + 4]
push dword [ebp - 0x18]
call dword [fcn.0040d030]
cmp dword [ebp - 0x1c], ebx
je 0x408cb0
push dword [esi + 4]
push dword [ebp - 0x1c]
call dword [fcn.0040d030]
add esi, 0x34
dec dword [ebp + 0x10]
jne 0x408c1f
cmp dword [ebp - 0x18], ebx
mov esi, dword [fcn.0040d034]
je 0x408ccc
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x408cd6
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x408d04
push dword [ebp - 0x20]
mov esi, dword [0x40d184]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x30]
call dword [0x40d148]
cmp dword [ebp + 0x14], ebx
je 0x408d01
push dword [ebp + 0x14]
call fcn.0040cc04
pop ecx
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret