Function at 0x479980
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x4c
mov eax, dword [0x652e08]
push ebx
push ebp
push esi
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x38]
mov dword [eax + 0x168], 0
push ecx
mov ecx, dword [0x652e08]
call fcn.0040d110
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
sar ebx, 5
mov eax, ebp
sar eax, 6
lea edi, [eax + 0xb]
mov esi, ebx
mov ecx, eax
shl esi, 5
shl ecx, 6
cmp eax, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edi
lea edx, [ebx + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], eax
jge 0x479b7e
add ecx, 0x20
mov dword [esp + 0x14], ecx
mov ecx, 0xffffffe0
sub ecx, ebp
mov dword [esp + 0x34], ecx
cmp ebx, edx
mov eax, ebx
mov dword [esp + 0x28], eax
jge 0x479b62
mov edx, dword [esp + 0x14]
add ecx, edx
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x64]
lea edi, [ebx + ebx*2]
lea ebp, [ebx + ebx*4]
shl edi, 3
shl ebp, 2
sub esi, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp edx, dword [ecx + 0x10]
jge 0x479b2e
cmp eax, dword [ecx + 0x14]
jge 0x479b2e
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*4]
lea eax, [ecx + edi]
mov cl, byte [eax + 7]
test cl, cl
je 0x479ae9
movzx edx, cl
mov ecx, dword [edx*4 + 0xec10c4]
test ecx, ecx
je 0x479a91
movzx edx, byte [eax + 6]
movzx eax, byte [eax + 5]
cmp eax, dword [ecx + 0xc]
jae 0x479a91
cmp edx, dword [ecx + 0x10]
jae 0x479a91
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x479a91
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
push 0
push eax
push esi
call fcn.0044f860
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
add ecx, ebp
mov edx, ecx
mov eax, dword [edx]
test ax, ax
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 8]
mov ebx, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
je 0x479ae5
movzx edx, ax
mov eax, dword [esp + 0x1c]
test ecx, ecx
mov ecx, dword [esp + 0x68]
jne 0x479ad5
push 0
jmp 0x479ad7
push 0xa
push ecx
push edx
push esi
mov ecx, 0xe5a570
push eax
call fcn.00454f10
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
cmp byte [ecx + edi + 4], 6
jne 0x479b2e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x479b2e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x652e08]
push 2
push edx
push eax
call fcn.0040bdc0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add edx, 0x20
inc eax
mov dword [esp + 0x18], edx
lea edx, [ebx + 0x10]
add ebp, 0x14
add edi, 0x18
add esi, 0x20
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x479a25
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
inc eax
add ebp, 0x40
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jl 0x4799f4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret 0xc