Function at 0x406bf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24c
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x258]
push edi
mov eax, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x274]
mov ecx, dword [esp + 0x264]
mov byte [ebx + 0xde1], 0
mov byte [ebx + 0xee2], 0
push ebp
push eax
push ecx
call fcn.00408560
add esp, 0xc
test eax, eax
je 0x407125
mov eax, dword [esp + 0x264]
mov edx, dword [esp + 0x264]
add eax, 0x138
add edx, 0x30
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x44], 0
mov eax, dword [eax]
add eax, dword [edx]
jne 0x406c8b
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24c
ret
mov eax, dword [ebx + 0xad4]
push eax
call dword [ebx + 0xc]
mov dword [esp + 0x18], eax
add esp, 4
test eax, eax
je 0x407125
mov eax, dword [ebx + 0xad4]
push eax
call dword [ebx + 0xc]
mov dword [esp + 0x20], eax
add esp, 4
test eax, eax
je 0x407125
mov eax, dword [ebx + 0xad0]
push eax
call dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
add esp, 4
test eax, eax
je 0x407125
mov edx, dword [ebx + 0xad4]
mov edi, dword [esp + 0x14]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebx + 0xad4]
mov edi, dword [esp + 0x1c]
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebx + 0xad0]
mov edi, dword [esp + 0x18]
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
add eax, dword [ecx]
je 0x4075e5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
add eax, dword [ebx + 0xacc]
add eax, dword [ebx + 0x13c]
add eax, dword [ebx + 0xad0]
add eax, dword [ecx]
add eax, dword [ebx + 0x244]
add eax, dword [ebx + 0x34]
cmp byte [ebx + 0xbdf], 0
mov dword [esp + 0x10], eax
je 0x406d96
lea edi, [ebx + 0xce0]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edi, [ebx + 0xbdf]
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx + edx - 1]
add edx, 2
add dword [esp + 0x10], edx
cmp byte [ebx + 0xfe3], 0
je 0x406dcf
lea edi, [ebx + 0x10e4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edi, [ebx + 0xfe3]
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx + edx - 1]
add edx, 2
add dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push ebp
mov dword [esp + 0x4c], eax
push eax
mov dword [esp + 0x40], 0
push 0
push 1
call dword [esp + 0x280]
add esp, 0x10
cmp eax, 0xffffffff
je 0x407627
mov esi, dword [ebx + 0x34c]
push ebp
sub esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 8]
push ecx
mov edx, dword [ebx + 0x28]
push edx
mov eax, dword [ebx + 0x20]
push eax
mov ecx, dword [ebx + 0x14]
lea edx, [esp + 0x60]
push ecx
push 2
push edx
call fcn.00408800
add esp, 0x20
test eax, eax
je 0x407125
test esi, esi
jl 0x406e46
cmp dword [esp + 0x268], 0
jne 0x406e46
mov dword [esp + 0x34], 0
jmp 0x406e4e
mov dword [esp + 0x34], 1
cmp dword [esp + 0x34], 0
je 0x406fc5
cmp byte [ebx + 0xde1], 0
jne 0x406eb4
lea edi, [ebx + 0x36e]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0xee2]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x46e]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0xde1]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx + 0xfe3], 0
je 0x406eed
lea edi, [ebx + 0x10e4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edi, [ebx + 0xfe3]
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx + edx - 1]
add edx, 2
sub dword [esp + 0x10], edx
lea edi, [ebx + 0x670]
lea esi, [ebx + 0x34c]
mov ecx, 0xc9
push ebp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x14]
lea eax, [ebx + 0x670]
push edx
inc dword [ebx + 0x684]
push eax
mov dword [ebx + 0x30], edx
call dword [esp + 0x278]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40763c
lea edx, [ebx + 0x792]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0xfe3]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x692]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0x10e4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edi, [ebx + 0x692]
sub eax, eax
lea edx, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [ebx + 0x34c]
mov eax, dword [esp + 0x10]
lea ecx, [ecx + edx - 1]
lea ecx, [eax + ecx + 2]
sub esi, ecx
cmp dword [ebx + 0x670], 0
jne 0x406fc5
mov dword [ebx + 0x670], 0x7ffffff
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], 0
mov ax, word [eax + 0x25c]
push ebp
mov word [ecx + 6], ax
lea edx, [esp + 0x30]
mov word [ecx + 4], 0
mov eax, dword [ebx + 0x34]
push edx
push 0
mov dword [ecx], eax
mov eax, dword [esp + 0x270]
push 0
mov dword [esp + 0x3c], 0
mov ecx, dword [eax + 0x34]
push ecx
call dword [ebx + 0x24]
add esp, 0x14
cmp eax, 0xffffffff
je 0x407651
mov eax, dword [esp + 0x264]
push ebp
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebx
call fcn.00407770
add esp, 0x10
test eax, eax
je 0x407355
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
add ecx, 4
mov edx, dword [ebx + 0xad4]
xor edi, edi
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x20], ecx
mov ax, word [ecx]
mov ecx, dword [esp + 0x24]
add eax, edx
mov ecx, dword [ecx]
add dword [esp + 0x30], eax
lea eax, [esi + ecx]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x30], eax
jae 0x407168
xor eax, eax
mov ecx, dword [esp + 0x14]
mov ax, word [ecx + 6]
mov edx, dword [esp + 0x18]
inc word [edx + 4]
push edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x268]
add dword [esp + 0x48], eax
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [edx + 0x264]
push eax
push ecx
call fcn.00408edc
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
mov eax, dword [ebx + 0xad4]
sub eax, 4
push eax
push ecx
call fcn.00408edc
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebp
mov dword [ecx], eax
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x1c]
push edx
mov ecx, dword [ebx + 0xad4]
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [ebx + 0x34]
push edx
push eax
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
push ebp
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x1c]
push ecx
xor eax, eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x270]
mov ax, word [edx]
mov edx, dword [ecx + 0x264]
push eax
push edx
lea eax, [ebx + 0x34]
push eax
call fcn.004089d0
add esp, 0x18
test eax, eax
jne 0x407311
cmp dword [esp + 0x14], 0
jne 0x407137
mov ecx, dword [esp + 0x14]
push ecx
call dword [ebx + 0x10]
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x407149
mov ecx, dword [esp + 0x1c]
push ecx
call dword [ebx + 0x10]
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x40715b
mov ecx, dword [esp + 0x18]
push ecx
call dword [ebx + 0x10]
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24c
ret
mov eax, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x10], eax
jae 0x4072a9
sub ecx, edx
mov eax, dword [esp + 0x18]
inc word [eax + 4]
sub ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x264]
push 0
lea edi, [ecx + esi]
mov ecx, dword [esp + 0x20]
add ecx, 4
push edi
mov word [ecx + 2], 0
mov word [ecx], di
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x264]
push edx
call fcn.00408edc
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
mov eax, dword [ebx + 0xad4]
sub eax, 4
push eax
push ecx
call fcn.00408edc
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ebp
mov dword [ecx], eax
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x1c]
push edx
mov ecx, dword [ebx + 0xad4]
mov edx, dword [esp + 0x24]
push eax
push ecx
lea eax, [ebx + 0x34]
push edx
push eax
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
push ebp
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [esp + 0x26c]
push ecx
push edi
lea ecx, [ebx + 0x34]
mov eax, dword [edx + 0x264]
push eax
push ecx
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
mov ecx, dword [esp + 0x20]
push ebp
sub word [ecx], di
mov eax, dword [esp + 0x268]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [eax + 0x2c]
push edx
mov eax, dword [ebx + 0xad4]
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
push eax
push edx
push ecx
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
mov eax, dword [esp + 0x264]
push ebp
mov edx, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x2c]
push ecx
xor eax, eax
mov ecx, dword [esp + 0x28]
push edx
mov ax, word [ecx]
mov edx, dword [esp + 0x270]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [edx + 0x264]
add eax, edi
push eax
push ecx
call fcn.004089d0
add esp, 0x18
test eax, eax
jne 0x407311
jmp 0x407125
mov eax, dword [esp + 0x264]
push ebp
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebx + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
mov eax, dword [esp + 0x264]
push ebp
mov edx, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x2c]
push ecx
xor eax, eax
mov ecx, dword [esp + 0x28]
push edx
mov ax, word [ecx]
mov edx, dword [esp + 0x270]
push eax
mov ecx, dword [edx + 0x264]
lea eax, [esp + 0x5c]
push ecx
push eax
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
xor eax, eax
mov ecx, dword [esp + 0x20]
mov ax, word [ecx]
push ebp
add eax, edi
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x3c], eax
push ecx
mov edx, dword [esp + 0x40]
push edx
push 1
call dword [esp + 0x280]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40701a
push 0
mov eax, dword [ebx + 0x2c]
push 7
push eax
call fcn.00408ec0
add esp, 0xc
jmp 0x407125
inc word [ebx + 0x9ae]
push ebp
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x1c]
push eax
mov edx, dword [ebx + 0xad0]
mov eax, dword [esp + 0x20]
push ecx
push edx
lea ecx, [ebx + 0x244]
push eax
push ecx
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
lea eax, [esp + 0x2c]
push ebp
mov ecx, dword [esp + 0x268]
push eax
mov dword [esp + 0x34], 0
push 0
mov edx, dword [ecx + 0x13c]
push 0
push edx
call dword [ebx + 0x24]
add esp, 0x14
cmp eax, 0xffffffff
je 0x407669
mov eax, dword [esp + 0x264]
push ebp
push eax
push ebx
call fcn.004076e0
add esp, 0xc
test eax, eax
je 0x407522
mov ax, word [ebx + 0x9c0]
lea edi, [ebx + 0x9b8]
and ax, 0xfffd
lea esi, [ebx + 0xade]
sub ax, 0xfffd
push ebp
cmp ax, 1
mov ecx, dword [edi]
sbb eax, eax
lea edx, [ebx + 0x34c]
neg eax
push eax
push ecx
push esi
push edx
call dword [ebx + 4]
add esp, 0x14
cmp eax, 0xffffffff
je 0x407681
mov ax, word [ebx + 0x9c0]
and ax, 0xfffd
cmp ax, 0xfffd
je 0x40742f
mov ax, word [ebx + 0xad8]
mov word [ebx + 0x9c0], ax
mov eax, dword [ebx + 0x9bc]
add eax, dword [edi]
cmp eax, dword [esp + 0x44]
jbe 0x407460
mov ax, word [ebx + 0x9c0]
mov word [ebx + 0x9c0], 0xffff
and ax, 0xfffd
cmp ax, 0xfffd
je 0x407460
mov word [ebx + 0x9c0], 0xfffe
push ebp
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x1c]
push ecx
lea edx, [ebx + 0x13c]
push 0x10
push edi
push edx
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
push ebp
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, dword [ebx + 0x1c]
push ecx
lea edx, [ebx + 0x13c]
push esi
push edx
call fcn.00408a30
add esp, 0x14
test eax, eax
je 0x407125
mov ax, word [ebx + 0x9c0]
and ax, 0xfffe
inc word [ebx + 0x9b0]
cmp ax, 0xfffe
jne 0x4073b7
mov eax, dword [esp + 0x264]
push ebp
mov word [ebx + 0x9c0], 0xfffd
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebx + 0x1c]
lea eax, [esp + 0x158]
push ecx
push edx
push 0x10
push edi
push eax
call fcn.004089d0
add esp, 0x18
test eax, eax
je 0x407125
mov eax, dword [esp + 0x264]
push ebp
mov edx, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x2c]
lea eax, [esp + 0x158]
push ecx
push edx
push esi
push eax
call fcn.00408a30
add esp, 0x14
test eax, eax
jne 0x4073b7
jmp 0x407125
mov eax, dword [esp + 0x264]
push ebp
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x24]
push ecx
push edx
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x30]
push ecx
push 2
push edx
call fcn.00408920
add esp, 0x18
test eax, eax
je 0x407125
lea esi, [esp + 0x4c]
mov edi, dword [esp + 0x24]
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x154]
mov edi, dword [esp + 0x28]
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x34], 0
je 0x4075d3
mov eax, dword [esp + 0x48]
push ebp
lea ecx, [esp + 0x3c]
push eax
mov edx, dword [esp + 0x278]
push ecx
push edx
push ebx
call fcn.00407900
add esp, 0x14
test eax, eax
je 0x407125
mov eax, dword [ebx + 0x34c]
test eax, eax
je 0x4075b7
mov ecx, dword [ebx + 0x364]
cmp dword [ebx + 0x688], ecx
jne 0x4075b7
mov dword [ebx + 0x670], eax
lea esi, [ebx + 0x670]
lea edi, [ebx + 0x34c]
mov ecx, 0xc9
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0xad8], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
add eax, dword [ecx]
jne 0x406d32
cmp dword [esp + 0x268], 0
jne 0x4075f6
inc word [ebx + 0xad8]
mov ecx, dword [esp + 0x14]
push ecx
call dword [ebx + 0x10]
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [ebx + 0x10]
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24c
ret
push 0
mov eax, dword [ebx + 0x2c]
push 7
push eax
call fcn.00408ec0
add esp, 0xc
jmp 0x407125
push 0
mov eax, dword [ebx + 0x2c]
push 7
push eax
call fcn.00408ec0
add esp, 0xc
jmp 0x407125
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x2c]
push eax
push 4
push ecx
call fcn.00408ec0
add esp, 0xc
jmp 0x407125
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x2c]
push eax
push 4
push ecx
call fcn.00408ec0
add esp, 0xc
jmp 0x407125
push 0
mov eax, dword [ebx + 0x2c]
push 7
push eax
call fcn.00408ec0
add esp, 0xc
jmp 0x407125