Function at 0x412110
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x412590
test dword [edi], 0x8000
je 0x412590
mov edx, dword [edi + 8]
movzx eax, word [edx + 0xc]
test ax, ax
je 0x412590
mov edx, dword [edx + 4]
mov dword [esp + 4], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
push ebx
push ebp
mov ebp, eax
mov eax, dword [0x4d4048]
movzx ecx, bp
mov dword [esp + 0x14], ebp
push esi
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x412195
lea eax, [edx*8]
push eax
push 0
push eax
call fcn.004340b0
add esp, 4
push eax
call fcn.004a3fe0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x41219d
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x3c], 0
je 0x412241
movzx eax, word [ecx + 0x3e]
test ax, ax
je 0x412241
mov esi, dword [ecx + 0x14]
mov ebx, eax
mov ebp, dword [esp + 0x1c]
nop
cmp word [esi + 4], 1
jne 0x412235
movzx edx, word [esi + 8]
movzx eax, word [esi + 6]
add edx, eax
test dword [edi], 0x8000
je 0x412231
test edx, edx
je 0x412231
mov eax, dword [edi + 8]
cmp edx, dword [eax + 4]
ja 0x412231
mov eax, dword [eax]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
add eax, 0xffffffe8
je 0x412231
push dword [esi]
lea edi, [edx*8]
push eax
call fcn.00423dc0
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x412221
mov eax, 3
dec edx
mov word [edi + ebp - 2], ax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], edx
jmp 0x412235
mov eax, 1
mov word [edi + ebp - 2], ax
mov edi, dword [esp + 0x34]
jmp 0x412235
mov edx, dword [esp + 0x10]
add esi, 0xc
sub ebx, 1
jne 0x4121c0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
movzx edi, word [ecx + 0x50]
movzx ebx, word [ecx + 0x44]
mov esi, dword [ecx + 8]
mov dword [esp + 0x20], edi
test edx, edx
je 0x41241c
test edi, edi
je 0x41241c
cmp dword [esi], 0
je 0x4123b2
mov ax, word [esp + 0x38]
test ax, ax
je 0x412289
test word [esi + 0x16], ax
je 0x4123b2
movzx edx, word [ecx + 0x34]
cmp bp, dx
je 0x41229c
cmp bp, word [esi + 0x14]
jne 0x4123ae
mov ecx, dword [esi + 8]
cmp ecx, 0x4d0ff8
je 0x4122af
cmp ecx, 0x4d1008
jne 0x4122b2
mov ecx, dword [esi + 0xc]
cmp ecx, 0x4d0f48
je 0x4122c6
cmp ecx, 0x4d0f38
jne 0x4123aa
xor eax, eax
cmp ecx, 0x4d0f48
sete al
add eax, 2
movzx ebp, ax
cmp word [esp + 0x18], dx
jne 0x4122e4
movzx eax, word [esi + 0x1a]
jmp 0x4122e8
mov eax, dword [esp + 0x2c]
movzx edi, word [esi + 0x18]
add edi, eax
je 0x4122f6
cmp edi, dword [esp + 0x28]
jbe 0x41230c
push 0
push str.__objGetIVars__
push 0
push 0x232d
call fcn.0044b600
add esp, 0x10
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + edi*8 - 2]
cmp dx, bp
jae 0x4123a2
mov eax, dword [esp + 0x34]
test dword [eax], 0x8000
je 0x412377
test edi, edi
je 0x412377
mov eax, dword [eax + 8]
cmp edi, dword [eax + 4]
ja 0x412377
mov eax, dword [eax]
lea ecx, [edi + edi*2]
lea eax, [eax + ecx*8]
add eax, 0xffffffe8
je 0x412377
test dx, dx
jne 0x412350
test dword [eax], 0xfffbffff
je 0x412377
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + edi*8 - 8]
test ecx, ecx
mov word [edx + edi*8 - 4], ax
mov dword [edx + edi*8 - 8], esi
mov edx, dword [esp + 0x24]
lea eax, [edx + 1]
cmovne eax, edx
mov dword [esp + 0x24], eax
jmp 0x41237c
mov ebp, 3
mov eax, dword [esp + 0x1c]
cmp bp, 3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov word [eax + edi*8 - 2], bp
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
jne 0x4123b2
dec edx
mov dword [esp + 0x10], edx
jmp 0x4123b2
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esi, 0x20
sub edi, 1
mov dword [esp + 0x20], edi
jne 0x412410
mov ax, bx
add ebx, 0xffff
test ax, ax
je 0x412410
mov ecx, dword [ecx + 0x2c]
movzx eax, bx
cmp bp, word [ecx + eax*4]
jne 0x4123e6
mov ax, bx
add ebx, 0xffff
test ax, ax
je 0x41241c
movzx eax, bx
movzx ebp, word [ecx + eax*4]
movzx eax, word [ecx + eax*4 + 2]
mov dword [esp + 0x2c], eax
mov eax, dword [0x4d4048]
movzx ecx, bp
mov dword [esp + 0x18], ebp
mov eax, dword [eax + ecx*4]
movzx edi, word [eax + 0x50]
mov esi, dword [eax + 8]
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x14]
test edx, edx
jne 0x412264
xor ebx, ebx
push ebx
call fcn.00422fe0
push dword [esp + 0x28]
mov esi, eax
push esi
mov dword [esp + 0x2c], esi
call fcn.0041ff40
mov edi, 1
add esp, 0xc
cmp dword [esp + 0x28], edi
jb 0x412570
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], 0x18
cmp ebx, dword [esp + 0x24]
jae 0x412570
mov eax, dword [ebp]
test eax, eax
je 0x41255d
mov eax, dword [eax]
add ecx, 0x18
inc ebx
mov dword [esp + 0x18], ecx
test dword [esi], 0x8000
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
je 0x412498
test ebx, ebx
je 0x412498
mov eax, dword [esi + 8]
cmp ebx, dword [eax + 4]
ja 0x412498
mov esi, dword [eax]
add esi, 0xffffffe8
add esi, ecx
jmp 0x41249a
xor esi, esi
push 2
push esi
call fcn.0041ff40
mov ecx, dword [esp + 0x1c]
add esp, 8
movzx eax, word [ebp + 4]
cmp ax, word [ecx + 0x34]
je 0x4124ef
mov ecx, eax
mov eax, dword [0x4d4048]
push 0
push dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
push 0x4bb378
push dword [eax]
push 0
call fcn.00460200
add esp, 0x14
test dword [esi], 0x8000
je 0x41250e
mov ecx, dword [esi + 8]
cmp dword [ecx + 4], 1
jb 0x41250e
push eax
push dword [ecx]
call fcn.00424ac0
jmp 0x41250b
test dword [esi], 0x8000
je 0x41250e
mov eax, dword [esi + 8]
cmp dword [eax + 4], 1
jb 0x41250e
push dword [esp + 0x2c]
push dword [eax]
call fcn.00424900
add esp, 8
mov eax, dword [esp + 0x34]
test dword [eax], 0x8000
je 0x412533
test edi, edi
je 0x412533
mov eax, dword [eax + 8]
cmp edi, dword [eax + 4]
ja 0x412533
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xffffffe8
add ecx, eax
jmp 0x412535
xor ecx, ecx
test dword [esi], 0x8000
je 0x412555
mov eax, dword [esi + 8]
cmp dword [eax + 4], 2
jb 0x412555
mov eax, dword [eax]
push ecx
add eax, 0x18
push eax
call fcn.00423ab0
add esp, 8
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x10], 0x18
inc edi
add ebp, 8
cmp edi, dword [esp + 0x28]
jbe 0x412454
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412586
add eax, 0xfffffffc
push eax
push 0
call fcn.00435bb0
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
xor eax, eax
pop edi
add esp, 0x20
ret