Function at 0x422420
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [eax + 0x208]
mov eax, dword [eax]
test byte [eax + 0xc], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], eax
je 0x422455
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x40]
imul esi, esi, 0x38
test edx, edx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + edi + 0x20]
mov ebx, dword [esi + edi + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
je 0x422482
test ecx, ecx
je 0x42248c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
test ecx, ecx
je 0x42248c
cmp word [edi], 1
jg 0x422478
mov ecx, dword [ebx + 0x28]
test ecx, ecx
mov eax, dword [ebx + 8]
je 0x42249c
cmp dword [ebp + 0x28], 0
jne 0x422478
cmp dword [ebx + 0x2c], 0
jne 0x422478
cmp dword [ebp + 0x24], 0
je 0x4224ac
test ecx, ecx
jne 0x422478
cmp word [eax], 0
je 0x422478
test byte [ebx + 6], 1
jne 0x4224bc
test ecx, ecx
je 0x4224c6
cmp word [edi], 1
jg 0x422478
test edx, edx
jne 0x422478
mov dx, word [ebp + 6]
and dx, 1
je 0x4224d8
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x422478
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4224e6
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x422478
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4224f5
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x422478
test ecx, ecx
je 0x422504
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x422478
mov cl, byte [esi + edi + 0x1d]
test cl, 0x20
lea eax, [esi + edi + 0x1d]
mov dword [esp + 0x2c], eax
jne 0x422478
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4225b5
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x422478
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x422478
test dx, dx
jne 0x422478
cmp word [edi], 1
jne 0x422478
mov eax, ebx
mov dl, 5
test byte [eax + 6], dl
jne 0x422478
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x42256c
cmp byte [eax + 4], 0x71
jne 0x422478
mov eax, dword [eax + 8]
test eax, eax
je 0x422478
cmp word [eax], 1
jne 0x422478
mov eax, ecx
test eax, eax
jne 0x422552
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4225b5
cmp dword [eax], 0
jle 0x4225b5
mov eax, dword [eax + 0xc]
add eax, 0xe
lea esp, [esp]
cmp word [eax], 0
je 0x422478
mov edx, dword [ebp + 0x18]
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x4225a0
mov ecx, dword [esi + edi + 0xc]
mov eax, dword [esp + 0x3c]
push 0
push 0
push 0
push 0x15
mov dword [eax + 0x208], ecx
call fcn.0041ab60
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov dword [eax + 0x208], edx
mov eax, dword [ebx + 0x1c]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], eax
je 0x42266b
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x28]
xor eax, eax
push eax
push ebp
push edx
mov dword [esp + 0x2c], ecx
mov dword [ebp + 0x18], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x28], eax
call fcn.0041a470
add esp, 0xc
test eax, eax
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 8], edi
mov byte [ebp + 4], 0x71
mov dword [ebp + 0x24], 0
jne 0x422638
mov eax, dword [esp + 0x20]
jmp 0x422646
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], 0
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x1c], eax
mov al, byte [edx + 0x1e]
test al, al
jne 0x422986
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4225f0
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + edi + 8]
mov eax, dword [esi + edi + 0x18]
mov ebx, dword [esp + 0x10]
push ecx
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
call fcn.00408130
mov edx, dword [esi + edi + 0xc]
push edx
push ebx
call fcn.00408130
mov eax, dword [esi + edi + 0x10]
push eax
push ebx
call fcn.00408130
mov eax, dword [esi + edi + 0x14]
xor ecx, ecx
mov dword [esi + edi + 8], ecx
mov dword [esi + edi + 0xc], ecx
mov dword [esi + edi + 0x10], ecx
mov dword [esi + edi + 0x18], ecx
lea edi, [esi + edi + 0x14]
add esp, 0x18
cmp eax, ecx
je 0x4226f3
mov cx, word [eax + 0x20]
cmp cx, 1
jne 0x4226e8
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x1a8]
test ecx, ecx
jne 0x4226d7
mov ecx, edx
mov edx, dword [ecx + 0x224]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x224], eax
jmp 0x4226ed
dec ecx
mov word [eax + 0x20], cx
mov dword [edi], 0
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 8]
test eax, eax
mov esi, dword [esp + 0x10]
movsx edi, word [ebx]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x18], eax
je 0x42271d
mov ecx, dword [esp + 0x2c]
mov dl, byte [ecx]
mov byte [esp + 0x3c], dl
jmp 0x42273e
push 0
xor ecx, ecx
xor eax, eax
call fcn.0041b4e0
add esp, 4
test eax, eax
mov dword [ebp + 8], eax
mov dword [esp + 0x18], eax
je 0x422974
mov esi, dword [esp + 0x10]
cmp edi, 1
jle 0x422769
mov ecx, dword [esp + 0x44]
inc ecx
push ecx
lea edx, [edi - 1]
push edx
mov ecx, esi
call fcn.004166b0
mov dword [esp + 0x20], eax
mov dword [ebp + 8], eax
mov al, byte [esi + 0x1e]
add esp, 8
test al, al
jne 0x422974
test edi, edi
jle 0x4227d7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add ebx, 8
lea edx, [eax + ecx + 8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edi
jmp 0x422790
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0x20]
mov ebx, dword [esp + 0x10]
call fcn.0040f150
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov edi, edx
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
add esi, 0x38
add edx, 0x38
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
jne 0x422790
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov byte [eax + ecx + 0x1d], dl
mov esi, dword [ebp]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x28], eax
jle 0x422847
mov dword [esp + 0x3c], eax
mov edi, edi
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0xc]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x42282d
mov eax, dword [eax + 8]
test eax, eax
je 0x42282d
push edi
mov ebx, eax
call fcn.00412a70
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword [edx + ecx + 4], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], edx
jl 0x422800
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp]
push edx
push ebx
push eax
push edi
call fcn.004223d0
mov eax, dword [esp + 0x58]
add esp, 0x10
test eax, eax
je 0x42288a
mov ecx, dword [esi]
mov edx, dword [ebp + 0x10]
push ecx
push ebx
push edx
push edi
call fcn.004223d0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x14]
push eax
push ebx
push ecx
push edi
call fcn.00422300
add esp, 0x20
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42289d
mov dword [ebp + 0x18], eax
mov dword [esi + 0x18], 0
jmp 0x4228b2
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4228b2
mov edx, dword [esi]
push edx
push ebx
push eax
push edi
call fcn.004223d0
add esp, 0x10
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4228cb
push 0
push eax
push edi
call fcn.00420310
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x4228d3
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x422923
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], ecx
mov edx, dword [esi]
push edx
push ebx
push eax
push edi
call fcn.00422300
mov dword [ebp + 0x14], eax
mov ecx, dword [esi + 0x14]
push 0
push ecx
push edi
call fcn.00420310
mov edx, dword [ebp + 0x14]
push edx
push edi
call fcn.0041a0d0
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x10]
push 0
push eax
push edi
call fcn.00415950
add esp, 0x30
mov dword [ebp + 0x10], eax
jmp 0x422945
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
push ecx
push ebx
push edx
push edi
call fcn.00422300
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x50]
push edi
call fcn.0041a0d0
add esp, 0x18
mov dword [ebp + 0xc], eax
xor eax, eax
mov al, byte [esi + 6]
and eax, 1
or word [ebp + 6], ax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x422962
mov dword [ebp + 0x28], eax
mov dword [esi + 0x28], 0
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], ecx
jne 0x4226f3
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0040fce0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret