Function at 0x407c20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
mov cl, byte [0x4acb11]
or cl, byte [0x4acb10]
mov eax, dword [0x4acb1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
mov byte [esp + 0x38], cl
jne 0x407c56
push 0
push 0
call fcn.004089b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [0x4acb08]
xor ebp, ebp
mov ebx, 0x40
cmp esi, ebp
jne 0x407dc8
push 0x1400
call fcn.00487fe9
add esp, 4
mov dword [0x4acb08], eax
cmp eax, ebp
je 0x407dbc
push 0x2800
call fcn.00487fe9
add esp, 4
mov dword [0x4acb0c], eax
cmp eax, ebp
je 0x407dbc
push 0x20000
call fcn.00487fe9
add esp, 4
mov dword [0x4acafc], eax
cmp eax, ebp
je 0x407dbc
push 0x40000
call fcn.00487fe9
add esp, 4
mov dword [0x4acb00], eax
cmp eax, ebp
je 0x407dbc
mov edx, dword [0x4acb20]
lea eax, [edx + edx]
push eax
call fcn.00487059
add esp, 4
mov dword [0x4acb04], eax
cmp eax, ebp
je 0x407dbc
mov esi, dword [0x4acb08]
push 0x1400
push ebp
push esi
call fcn.00490360
mov edi, dword [0x4acb0c]
push 0x2800
push ebp
push edi
call fcn.00490360
mov byte [esi + 0x15c], 3
mov byte [esi + 0xcb0], 1
mov byte [esi + 0xcc4], 2
mov byte [esi + 0x170], 0xc
mov byte [esi + 0xcd8], 4
mov byte [esi + 0xcec], 8
mov byte [esi + 0x148], 0x30
mov byte [esi + 0xc88], 0x10
mov byte [esi + 0x724], bl
mov byte [esi + 0x738], 0x80
mov al, 0x20
mov byte [esi + 0xc9c], al
mov byte [edi + 0x24c], 1
mov byte [edi + 0x164c], 2
mov byte [edi + 0x468], 4
mov byte [edi + 0x1868], 8
mov byte [edi + 0x350], 0x10
mov byte [edi + 0x1840], al
mov byte [edi + 0x1b24], bl
mov byte [edi + 0x1b38], 0x80
add esp, 0x18
mov dword [esi + 0xb54], 0x4a8984
mov dword [esi + 0x190], 0x4a8980
mov dword [esi + 0xb40], 0x4a897c
jmp 0x407dce
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
jmp fcn.00409020
mov edi, dword [0x4acb0c]
lea eax, [esi + 9]
mov ecx, ebx
and byte [eax + 3], 8
and byte [eax + 0x17], 8
and byte [eax + 0x2b], 8
and byte [eax + 0x3f], 8
mov edx, 0x7fff
mov word [eax - 3], dx
mov word [eax], bp
mov byte [eax + 2], 0
mov byte [eax + 0xa], 0
mov word [eax + 0x11], dx
mov word [eax + 0x14], bp
mov byte [eax + 0x16], 0
mov byte [eax + 0x1e], 0
mov word [eax + 0x25], dx
mov word [eax + 0x28], bp
mov byte [eax + 0x2a], 0
mov byte [eax + 0x32], 0
mov word [eax + 0x39], dx
mov word [eax + 0x3c], bp
mov byte [eax + 0x3e], 0
mov byte [eax + 0x46], 0
add eax, 0x50
dec ecx
jne 0x407dd3
lea eax, [edi + 9]
mov ecx, 0x80
jmp 0x407e40
and byte [eax + 3], 8
and byte [eax + 0x17], 8
and byte [eax + 0x2b], 8
and byte [eax + 0x3f], 8
mov edx, 0x7fff
mov word [eax - 3], dx
mov word [eax], bp
mov byte [eax + 2], 0
mov byte [eax + 0xa], 0
mov word [eax + 0x11], dx
mov word [eax + 0x14], bp
mov byte [eax + 0x16], 0
mov byte [eax + 0x1e], 0
mov word [eax + 0x25], dx
mov word [eax + 0x28], bp
mov byte [eax + 0x2a], 0
mov byte [eax + 0x32], 0
mov word [eax + 0x39], dx
mov word [eax + 0x3c], bp
mov byte [eax + 0x3e], 0
mov byte [eax + 0x46], 0
add eax, 0x50
dec ecx
jne 0x407e40
mov ecx, 0x4a9a3c
nop
movzx eax, word [ecx]
cmp ax, bp
jbe 0x407eba
mov edx, 0x1ff
cmp ax, dx
ja 0x407eba
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 0x13], 1
add ecx, 8
cmp ecx, 0x4a9aa4
jl 0x407ea0
mov edi, dword [0x4acafc]
mov eax, 0x7fff
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x8000
rep stosd dword es:[edi], eax
mov edi, dword [0x4acb00]
mov eax, 0x7fff
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x10000
rep stosd dword es:[edi], eax
xor eax, eax
cmp dword [0x4acb20], ebp
jle 0x407f28
jmp 0x407f10
mov edx, dword [0x4acb04]
mov ecx, 0x7fff
mov word [edx + eax*2], cx
inc eax
cmp eax, dword [0x4acb20]
jl 0x407f10
mov eax, dword [0x4a9ab4]
movzx eax, word [eax]
xor ecx, ecx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487fe9
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x40], ebp
jle 0x40864b
mov ebp, dword [0x4acb08]
mov edi, dword [0x4acb0c]
add eax, 6
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + ecx*4]
mov al, byte [esi + 0x12]
test al, al
je 0x4081c9
cmp al, 4
jae 0x4081c9
cmp byte [0x4ac42a], 0
je 0x407fb4
mov eax, esi
call fcn.00404ac0
mov ebp, dword [0x4acb08]
mov edi, dword [0x4acb0c]
test al, al
je 0x4081c9
cmp word [esi + 6], 0
je 0x40800f
cmp byte [esi + 0x19], 0
sete al
test al, al
jne 0x4081c9
mov al, byte [esi + 0x10]
test al, al
jne 0x407fdc
cmp word [esi + 8], 0
je 0x4081c9
cmp al, 0xff
ja 0x4081c9
movzx ecx, word [esi + 8]
mov edx, 0x1ff
cmp cx, dx
ja 0x4081c9
test al, al
jne 0x408032
mov eax, ecx
lea eax, [eax + eax*4]
lea ebx, [edi + eax*4]
mov dword [esp + 0x1c], ebx
mov byte [ebx + 0x13], 1
jmp 0x408114
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4081c9
lea ebx, [ebx]
cmp byte [eax + 0x1c], 0
jne 0x407fca
mov eax, dword [eax + 8]
test eax, eax
jne 0x408020
jmp 0x4081c9
movzx eax, al
lea ecx, [eax + eax*4]
sub eax, 0x10
lea ebx, [ebp + ecx*4]
mov dword [esp + 0x1c], ebx
je 0x4080d6
dec eax
je 0x408096
dec eax
jne 0x408114
mov byte [ebp + 0xcda], 1
mov byte [ebp + 0xcee], 1
mov byte [edi + 0x46a], 1
mov byte [edi + 0x186a], 1
cmp byte [esi + 0x16], al
je 0x408114
mov byte [ebp + 0xcdb], 1
mov byte [ebp + 0xcef], 1
mov byte [edi + 0x46b], 1
mov byte [edi + 0x186b], 1
jmp 0x408114
mov byte [ebp + 0xcb2], 1
mov byte [ebp + 0xcc6], 1
mov byte [edi + 0x24e], 1
mov byte [edi + 0x164e], 1
cmp byte [esi + 0x16], 0
je 0x408114
mov byte [ebp + 0xcb3], 1
mov byte [ebp + 0xcc7], 1
mov byte [edi + 0x24f], 1
mov byte [edi + 0x164f], 1
jmp 0x408114
mov byte [ebp + 0xc8a], 1
mov byte [ebp + 0xc9e], 1
mov byte [edi + 0x352], 1
mov byte [edi + 0x1842], 1
cmp byte [esi + 0x16], 0
je 0x408114
mov byte [ebp + 0xc8b], 1
mov byte [ebp + 0xc9f], 1
mov byte [edi + 0x353], 1
mov byte [edi + 0x1843], 1
mov byte [ebx + 0xa], 1
cmp byte [esi + 0x16], 0
movzx edx, word [esi + 4]
mov dword [esp + 0x20], edx
je 0x408132
or dword [esp + 0x20], 0x8000
mov byte [ebx + 0xb], 1
mov dl, byte [esi + 0x11]
test dl, dl
jne 0x408144
cmp word [esi + 0xa], 0
jne 0x408144
xor al, al
jmp 0x408146
mov al, 1
cmp byte [ebx + 8], 0
je 0x408269
cmp byte [esi + 0xf], 0
jne 0x408269
test al, al
jne 0x408271
test byte [esi + 0x13], 2
jne 0x408178
mov cx, word [esi + 8]
mov bl, byte [esi + 0x10]
call fcn.00407aa0
mov ebx, dword [esp + 0x1c]
cmp byte [esi + 0xf], 0
jne 0x408188
test byte [esi + 0x13], 2
je 0x408188
or byte [ebx + 0xc], 1
movzx eax, word [esi + 6]
test ax, ax
jne 0x408196
movzx eax, word [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x14]
mov word [ecx + 4], ax
movzx edx, byte [esi + 0x10]
mov byte [ecx], dl
mov ax, word [esi + 8]
mov word [ecx + 2], ax
mov edx, dword [esi]
mov dword [ecx - 6], edx
mov al, byte [esi + 0xe]
mov byte [ecx - 2], al
movzx edx, byte [esi + 0x15]
mov byte [ecx - 1], dl
add ecx, 0xc
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x40]
jl 0x407f72
cmp dword [esp + 0x14], 0
je 0x40864b
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0x407950
push 0xc
push esi
push eax
call fcn.00488090
add esp, 0x10
test esi, esi
jle 0x40864b
mov eax, 0xfffffeb6
sub eax, dword [0x4acafc]
mov ecx, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
add eax, 6
mov dword [esp + 0x1c], ecx
movzx ecx, word [eax + 4]
mov edx, ecx
and ecx, 0x7fff
mov edi, ecx
shr edx, 0xf
and dl, 1
mov ecx, 0x7ff9
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], edi
cmp di, cx
ja 0x408360
mov cl, byte [eax]
test cl, cl
je 0x40830d
movzx ecx, cl
lea edx, [ecx + ecx*4]
mov ecx, dword [0x4acb08]
jmp 0x40831a
test al, al
je 0x408178
test dl, dl
je 0x4082b3
movzx eax, dl
lea eax, [eax + eax*4]
cmp byte [ebp + eax*4 + 8], 0
lea eax, [ebp + eax*4]
je 0x408297
mov al, 1
xor ecx, ecx
mov bl, dl
call fcn.00407aa0
mov ebx, dword [esp + 0x1c]
jmp 0x4082f8
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x4082f8
movzx eax, byte [esi + 0x11]
lea ecx, [eax + eax*4]
or byte [ebp + ecx*4 + 0xc], 1
lea eax, [ebp + ecx*4 + 0xc]
jmp 0x4082f8
movzx ecx, word [esi + 0xa]
mov eax, ecx
lea edx, [eax + eax*4]
cmp byte [edi + edx*4 + 8], 0
lea eax, [edi + edx*4]
je 0x4082d2
mov eax, ecx
lea eax, [eax + eax*4]
mov byte [edi + eax*4 + 9], 1
jmp 0x4082f8
mov byte [eax + 9], 1
test byte [esi + 0x13], 1
je 0x4082ec
movzx eax, word [esi + 0xa]
lea ecx, [eax + eax*4]
or byte [edi + ecx*4 + 0xc], 1
lea eax, [edi + ecx*4 + 0xc]
movzx eax, word [esi + 0xa]
lea edx, [eax + eax*4]
mov byte [edi + edx*4 + 0x13], 1
mov ax, word [ebx + 6]
mov cx, word [esi + 4]
mov word [esi + 0xc], ax
mov word [ebx + 6], cx
jmp 0x4081c9
movzx ecx, word [eax + 2]
lea edx, [ecx + ecx*4]
mov ecx, dword [0x4acb0c]
mov esi, dword [esp + 0x28]
lea ecx, [ecx + edx*4]
add ecx, 6
mov edx, 0x7fff
cmp word [ecx], dx
je 0x408350
mov edi, edi
movzx edx, word [ecx]
mov edx, dword [esi + edx*4]
cmp byte [edx + 0x11], 0
jne 0x408343
cmp word [edx + 0xa], 0
je 0x408350
lea ecx, [edx + 0xc]
mov edx, 0x7fff
cmp word [ecx], dx
jne 0x408330
movzx edx, di
mov edx, dword [esi + edx*4]
mov si, word [ecx]
mov word [edx + 0xc], si
mov word [ecx], di
mov cl, byte [eax - 2]
mov ebx, dword [eax - 6]
mov dword [esp + 0x24], ebx
test cl, cl
je 0x408396
xor edx, edx
test cl, 0xc0
je 0x40837a
mov edx, 8
test cl, 0xc
je 0x408382
or edx, 1
test cl, 0x30
je 0x40838a
or edx, 4
test cl, 3
je 0x408392
or edx, 2
or dword [esp + 0x24], edx
cmp byte [eax - 1], 0
je 0x4083a0
xor cl, cl
jmp 0x4083c5
xor dl, dl
test bl, 8
je 0x4083a9
mov dl, 0xc0
test bl, 1
je 0x4083b1
or dl, 0xc
test bl, 2
je 0x4083b9
or dl, 3
test bl, 4
je 0x4083c1
or dl, 0x30
or cl, dl
not cl
mov ebp, dword [0x4acb00]
mov edi, dword [0x4acafc]
movzx ecx, cl
xor edx, edx
xor esi, esi
add ebp, 0x270
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], esi
add edi, 0x14a
test dword [esp + 0x30], edx
jne case.0x40858d.19
xor ecx, ecx
test dl, 0xc0
je 0x408406
mov ecx, 8
test dl, 0xc
je 0x40840e
or ecx, 1
test dl, 0x30
je 0x408416
or ecx, 4
test dl, 3
je 0x40841e
or ecx, 2
mov ebx, dword [esp + 0x24]
and ecx, ebx
cmp ebx, ecx
jne case.0x40858d.19
cmp byte [eax - 2], 0
je 0x408442
movzx ecx, byte [eax - 2]
mov ebx, ecx
and ebx, edx
cmp ecx, ebx
jne case.0x40858d.19
mov cl, byte [eax]
test cl, cl
jne 0x4084e8
movzx edx, word [eax + 2]
add edx, dword [esp + 0x34]
mov ecx, dword [0x4acb00]
add edx, edi
lea esi, [ecx + edx*2]
movzx ecx, word [esi]
mov edx, 0x7fff
cmp cx, dx
jne 0x408478
mov cx, word [eax + 4]
mov word [esi], cx
jmp case.0x40858d.19
mov edx, ecx
shr edx, 0xf
and dl, 1
cmp byte [esp + 0x13], 0
je 0x4084a4
test dl, dl
jne 0x4084c3
mov dx, word [eax + 4]
mov esi, dword [0x4acb04]
and ecx, 0x7fff
mov word [esi + ecx*2], dx
jmp case.0x40858d.19
test dl, dl
je 0x4084c3
movzx edx, word [esp + 0x14]
mov ebx, dword [0x4acb04]
mov word [ebx + edx*2], cx
mov cx, word [eax + 4]
mov word [esi], cx
jmp case.0x40858d.19
mov edx, dword [0x4acb04]
movzx ebx, word [esp + 0x14]
and ecx, 0x7fff
mov cx, word [edx + ecx*2]
mov word [edx + ebx*2], cx
mov dx, word [eax + 4]
mov word [esi], dx
jmp case.0x40858d.19
mov edx, dword [0x4acafc]
movzx ecx, cl
add ecx, esi
lea esi, [edx + ecx*2]
movzx ecx, word [esi]
mov edx, 0x7fff
cmp cx, dx
jne 0x40850c
mov cx, word [eax + 4]
mov word [esi], cx
jmp 0x408574
mov edx, ecx
shr edx, 0xf
and dl, 1
cmp byte [esp + 0x13], 0
je 0x408538
test dl, dl
jne 0x408554
mov dx, word [eax + 4]
mov esi, dword [0x4acb04]
and ecx, 0x7fff
mov word [esi + ecx*2], dx
jmp case.0x40858d.19
test dl, dl
je 0x408554
movzx edx, word [esp + 0x14]
mov ebx, dword [0x4acb04]
mov word [ebx + edx*2], cx
mov cx, word [eax + 4]
mov word [esi], cx
jmp 0x408574
mov edx, dword [0x4acb04]
movzx ebx, word [esp + 0x14]
and ecx, 0x7fff
mov cx, word [edx + ecx*2]
mov word [edx + ebx*2], cx
mov dx, word [eax + 4]
mov word [esi], dx
movzx ecx, byte [eax]
add ecx, 0xfffffff0
cmp ecx, 0x95
ja case.0x40858d.19
movzx ecx, byte [ecx + 0x408850]
jmp dword [ecx*4 + 0x408834]
mov dx, word [eax + 4]
mov word [edi - 2], dx
mov cx, word [eax + 4]
mov word [ebp - 0x200], cx
cmp byte [eax], 0xa4
je case.0x40858d.19
mov dx, word [eax + 4]
mov word [edi], dx
mov cx, word [eax + 4]
mov word [ebp], cx
jmp case.0x40858d.19
mov dx, word [eax + 4]
mov word [edi - 0xa], dx
mov cx, word [eax + 4]
mov word [ebp - 0x21c], cx
cmp byte [eax], 0xa0
je case.0x40858d.19
mov dx, word [eax + 4]
mov word [edi - 8], dx
mov cx, word [eax + 4]
mov word [ebp - 4], cx
jmp case.0x40858d.19
mov dx, word [eax + 4]
mov word [edi - 6], dx
mov cx, word [eax + 4]
mov word [ebp - 0x236], cx
cmp byte [eax], 0xa2
je case.0x40858d.19
mov dx, word [eax + 4]
mov word [edi - 4], dx
mov cx, word [eax + 4]
mov word [ebp - 0x36], cx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add esi, 0x100
inc edx
add edi, 0x200
add ebp, 0x400
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], esi
cmp esi, 0xff00
jle 0x4083f0
add eax, 0xc
dec dword [esp + 0x1c]
jne 0x408224
mov edx, dword [esp + 0x18]
push edx
call fcn.0048831b
mov edx, dword [0x4acb08]
add esp, 4
cmp byte [edx + 0x14a], 0
je 0x4086fa
movzx edi, word [edx + 0x146]
mov eax, 0x7fff
cmp di, ax
je 0x4086fa
movzx ecx, word [edx + 0xc86]
lea eax, [edx + 0xc86]
mov esi, 0x7fff
cmp cx, si
je 0x4086b7
mov esi, dword [0x4acb1c]
lea esp, [esp]
movzx ecx, cx
mov eax, dword [esi + ecx*4]
movzx ecx, word [eax + 0xc]
add eax, 0xc
mov ebx, 0x7fff
cmp cx, bx
jne 0x4086a0
mov word [eax], di
movzx ecx, word [edx + 0xc9a]
lea eax, [edx + 0xc9a]
mov esi, 0x7fff
cmp cx, si
je 0x4086f7
mov esi, dword [0x4acb1c]
jmp 0x4086e0
movzx eax, cx
mov eax, dword [esi + eax*4]
movzx ecx, word [eax + 0xc]
add eax, 0xc
mov ebx, 0x7fff
cmp cx, bx
jne 0x4086e0
mov word [eax], di
cmp byte [edx + 0x15e], 0
je 0x40878a
movzx edi, word [edx + 0x15a]
mov ecx, 0x7fff
cmp di, cx
je 0x40878a
movzx ecx, word [edx + 0xcae]
lea eax, [edx + 0xcae]
mov esi, 0x7fff
cmp cx, si
je 0x40874c
mov esi, dword [0x4acb1c]
movzx eax, cx
mov eax, dword [esi + eax*4]
movzx ecx, word [eax + 0xc]
add eax, 0xc
mov ebx, 0x7fff
cmp cx, bx
jne 0x408735
mov word [eax], di
movzx ecx, word [edx + 0xcc2]
lea eax, [edx + 0xcc2]
mov esi, 0x7fff
cmp cx, si
je 0x408787
mov esi, dword [0x4acb1c]
lea esp, [esp]
movzx ecx, cx
mov eax, dword [esi + ecx*4]
movzx ecx, word [eax + 0xc]
add eax, 0xc
mov ebx, 0x7fff
cmp cx, bx
jne 0x408770
mov word [eax], di
cmp byte [edx + 0x172], 0
je 0x40881a
movzx edi, word [edx + 0x16e]
mov eax, 0x7fff
cmp di, ax
je 0x40881a
movzx ecx, word [edx + 0xcd6]
lea eax, [edx + 0xcd6]
mov esi, 0x7fff
cmp cx, si
je 0x4087dc
mov esi, dword [0x4acb1c]
movzx ecx, cx
mov eax, dword [esi + ecx*4]
movzx ecx, word [eax + 0xc]
add eax, 0xc
mov ebx, 0x7fff
cmp cx, bx
jne 0x4087c5
mov word [eax], di
movzx ecx, word [edx + 0xcea]
lea eax, [edx + 0xcea]
mov edx, 0x7fff
cmp cx, dx
je 0x408817
mov edx, dword [0x4acb1c]
lea esp, [esp]
movzx eax, cx
mov eax, dword [edx + eax*4]
movzx ecx, word [eax + 0xc]
add eax, 0xc
mov esi, 0x7fff
cmp cx, si
jne 0x408800
mov word [eax], di
mov ecx, dword [esp + 0x38]
push 0
push ecx
call fcn.004089b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret